Cleaning Up Old Configs On Ubuntu / Debian

Debian OpenLogo

Image via Wikipedia

This is more for my own use than anyone else...

If you remove a package in Debian / Ubuntu you often end up with legacy configuration files lying around.

Running the following command removes all the crud left lying around your system and may fix silly issues that you run into. As it's Linux, there's probably about 10 other ways to do this!

Here's the command:

sudo aptitude purge `dpkg --get-selections | grep deinstall | awk '{print $1}'`


Related Posts:

, , , , , , ,

No comments yet.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Powered by WordPress. Designed by WooThemes