Thomas Adam wrote:
On Tue, Aug 24, 2004 at 02:48:34PM -0400, PaulNM wrote:I don't understand this, but _I_'d backup /etc and some sections of /var. With your recent history, to CD:-)
1: Should I tar /etc before this and overwrite it again afterwards? If so, are there any other directories I should do the same to?
Unless you have made a lot of modifications, no. Of course, if you had made modifications, you'd have done so via local files under $HOME.
2: Is there a way to only reinstall packages with files in /usr? For example, kernel-sources* has files placed in /usr, but kernel-image* do not.
COLUMNS=200 dpkg -l | awk '/^ii/ {print $2}' | xargs apt-get --reinstall install
Should do it for you.
Sounds cute. Maybe you'll want this too: export DEBIAN_FRONTEND=noninteractive then COLUMNS=200 etc
--
Cheers John
-- spambait [EMAIL PROTECTED] [EMAIL PROTECTED] Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]