Re: screwed up my debian system any hints?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Bill Warner
Date:  
To: plug-discuss
Subject: Re: screwed up my debian system any hints?
Needed just a little more googling and I found a hackish solution.

using debsums will check the sums of all files as they compare to what
the package installed. it will print an error if a file is missing by
redirecting the errors to a file I was able to sort out the package
names with the nice unixy command:

cat debsums.out |awk '{ print $4 }' |sort |uniq > missing.packages

then fix them all with another nice unixy command:

for each in `cat missing.packages`; do dpkg -r --force-all $each;
apt-get install $each; done

I hope this will help inspire some people into the power of the command
line for good and ill.

:)

On Mon, 2004-06-21 at 22:33, Bill Warner wrote:
> well my /usr/bin directory got deleted. luckily I had access to another
> Debian box that was very similar and an nfs mount so I was able to tar
> up the /usr/bin directory on the good system and recover it on the
> broken system.
>
> I know the good system didn't have some packages that the now somewhat
> fixed system had but I don't know of a dpkg/apt command that can verify
> that packages are installed correctly. does anyone know of such a
> command?
>
> thanks

--
Bill Warner <>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss