Okay, Debian gurus... a challenge.

Cole Tuininga colet at code-energy.com
Fri Jan 9 13:40:23 EST 2004


On Fri, 2004-01-09 at 12:53, Ken D'Ambrosio wrote:
> Somehow, by hook or by crook, /usr/lib on one of our servers up and 
> vanished.  I've recovered enough files from other sources that I can now 
> run (say) apt-get, among most (but by no means all) others.  So, can 
> anyone give me the apt-get-command-from-hell that would examine all the 
> packages currently installed, and either
> a) re-install their /usr/lib files, or, failing that,
> b) re-install all their non-config files, or, failing _that_,
> c) re-install _all_ their files (I have a backup of all config data,
>    so it's not like I'd be starting from scratch).

If your currently installed packages list is valid, what about just
something like:

dpkg --get-selections | cut -f1 | xargs apt-get install --reinstall

I've never tried it, but would something like this work?

-- 
"I have tact.  I just choose not to use it."
-Ben Scott

Cole Tuininga
Lead Developer
Code Energy, Inc
colet at code-energy.com
PGP Key ID: 0x43E5755D





More information about the gnhlug-discuss mailing list