Mar 01

Cleaning Up Old Configs On Ubuntu / Debian

by in Debian, Linux, Open Source, Techie :: Techno ::, Ubuntu

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}'`

Enjoy!

Related Posts:

Tags: , , , , , , ,

Leave a Reply

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

css.php