Automatically repair configuration files

2009-05-12 Thread Angelin Lalev
One of my xen domains just crashed and left the ext3 filesystem of one
of my DomU debian installations in a horrible state. Subsequent fsck
deleted a bunch of files. 
Now I want to fix a package or two by reinstalling the configurations. 

aptitude purge package  aptitude install package 

howewer seems to be the wrong approach. I got 'not reinstalling deleted
file' etc.

Is there a way to do it painlessly and automatically with aptitude ?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Automatically repair configuration files

2009-05-12 Thread Andrei Popescu
On Tue,12.May.09, 09:23:50, Angelin Lalev wrote:
 One of my xen domains just crashed and left the ext3 filesystem of one
 of my DomU debian installations in a horrible state. Subsequent fsck
 deleted a bunch of files. 
 Now I want to fix a package or two by reinstalling the configurations. 
 
 aptitude purge package  aptitude install package 
 
 howewer seems to be the wrong approach. I got 'not reinstalling deleted
 file' etc.
 
 Is there a way to do it painlessly and automatically with aptitude ?

I think you need 'dpkg -i --force-confmiss package-file.deb'. If you 
didn't run 'aptitude clean' lately you should find the .debs in 
/var/cache/apt/archives/

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature