Cleaning up Your Ubuntu Installation


You have installed a lot of applications, uninstalled them.  A lot of times when you apt-get remove all those dependencies stay behind.  There are a lot that think aptitude is the answer but I have found that when you aptitude remove an application it removes stuff you don't want removed.   Ubuntu has a few methods that will free up disc space and make your OS lean and fast.

First thing first there is a few commands that can clean up your disc.  I will explain them as we go.  First command is the package autoclean.  What autoclean does is remove partial packages from the system.  To use autoclean type the following command in a terminal:

sudo apt-get autoclean

Then enact the package clean command.  What this commnad does is to clean remove .deb packages that apt caches when you install/update programs.  To use the clean command type the following in a terminal window:

sudo apt-get clean

You can then use the autoremove command.  What the autoremove command does is to remove packages installed as dependencies after the original package is removed from the system.  To use autoremove tye the following in a terminal window:


sudo apt-get autoremove

Next step is to install the gtkOrphan GUI.  What gtkorphan does is to find packages that were once used but no longer have any purpose.  Be careful as to not remove the Gstreamer packages as they are for mp3 encoder/decoding and DVD playback.  Do not remove them.  To install gtkOrphan type the following in a terminal windowt:

sudo apt-get install gtkorphan

You will then be able to use gtkOrphan by going to System--->Administraion--->Remove orphaned packages.  It is pretty self-explanatory.  After you have completed the recommendations of this article you should have a slick clean Ubuntu OS.

Here is an excellent site about cleaning up Ubuntu as well.

I hope this helps.


Home