On Thu,23.Oct.08, 13:44:53, Marco Romano wrote: > John Merchant ha scritto: >> Hello all, I have a lot of unused configuration files left in /etc from >> removed packages. Is there any way I can automatically remove them all? > > You can get the list of all removed but not purged packages with: > > $ dpkg -l | awk '/^rc/{print $2}' > > or, in case you prefer aptitude: > > $ aptitude search '~c' > > You just have to put one of the above commands in a for loop: > > # for pack in $(dpkg -l | awk '/^rc/{print $2}'); do dpkg -P $pack; done
Or just do $ aptitude purge '~c' Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
signature.asc
Description: Digital signature