Re: Deleting unused configuration files
- From: Andrei Popescu <andreimpopescu@xxxxxxxxx>
- Date: Sat, 25 Oct 2008 10:01:04 +0300
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)
Attachment:
signature.asc
Description: Digital signature
- References:
- Deleting unused configuration files
- From: John Merchant
- Re: Deleting unused configuration files
- From: Marco Romano
- Deleting unused configuration files
- Prev by Date: Re: cannot install all updates
- Next by Date: Re: downgrading a single package
- Previous by thread: Re: Deleting unused configuration files
- Next by thread: Re: Deleting unused configuration files
- Index(es):