Cleaning Up After "apt-get remove"

| | Comments (0) | TrackBacks (0)
By default "apt-get remove package" doesn't purge everything related to the package. This eventually means that a log of configuration files are left scattered around the place with no corresponding packages. A couple of weeks ago, the following solution was proposed on #linux:

dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`

This is good for cleaning up after the fact, but is also possible to get apt to purge configuration files automatically. To accomplish this put the following in /etc/apt/apt.conf:

    APT
    {
Get
{
    Purge "true";
}
}
This will cause apt-get to automatically purge the configuration files every time you do "apt-get remove"

0 TrackBacks

Listed below are links to blogs that reference this entry: Cleaning Up After "apt-get remove".

TrackBack URL for this entry: http://blog.moybella.net/cgi-bin/mt-tb.cgi/70

Leave a comment

About this Entry

This page contains a single entry by Niall Donegan published on September 5, 2007 3:32 PM.

Quick Pros And Cons Of Nokia E70 was the previous entry in this blog.

Blog Post Of The Year is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.01