[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fixing Broken System



On Mon, 2002-06-17 at 16:51, Chris Tillman wrote:
> On Mon, Jun 17, 2002 at 09:23:19AM -0400, Brian Victor wrote:
> > Due to an intermittent hard drive error which has since been fixed, my
> > root partition has taken significant but not sweeping damage.  Most
> > binaries still work, but a few don't, such as df, cat, and mount.  I
> > don't know precisely how much was damaged, nor do I know an easy method
> > of determining this.
> > 
> > That said, is there any way of forcing apt to reinstall all installed
> > packages or something?  From what I can tell, upgrade and dist-upgrade
> > only reinstall changed packages.  Or perhaps I can install the potato
> > base and use my existing apt database to tell it what packages to
> > install?  What is the recommended way of recovering such a broken
> > system?
> 
> Probably someone on debian-user would know better, this is not a powerpc 
> question. 
> 
> If I were trying to do this (but I'm no expert!), I would try something like
> 
> dpkg -S `ls /bin` | sed 's/:.*$//' | sort | uniq > package_list_bin
> dpkg -S `ls /sbin` | sed 's/:.*$//' | sort | uniq > package_list_sbin
> 
> to see what packages are involved, and then edit package_list
> into a script that would apt-get remove and apt-get install them.

Or apt-get --reinstall install...

> It would probably be dangerous to do them all at once.

You don't seem very confident in APT...


PS: With aptitude, reinstalling all installed packages is very easy.

-- 
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast


--
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: