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