Annoyances: September 2007 Archives

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"

About this Archive

This page is a archive of entries in the Annoyances category from September 2007.

Annoyances: August 2007 is the previous archive.

Annoyances: October 2007 is the next archive.

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

Powered by Movable Type 4.01