Cleaning Up After "apt-get remove"
By Chris Herberte on September 13th, 2007By 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`
