Installing and removing programs can clutter up your system. Sometimes certain dependency packages aren’t needed after a program has been uninstalled – so trash it. I have a few handy tricks up my sleeve so you can reclaim some of your disk space back:
apt-get isn’t like your two your old cousin – it can clean up after itself. If you want to get rid of packages that are no longer referenced by your system, its as simple as “sudo apt-get autoremove” in the terminal
Retrieved or downloaded packages can still remain locally on your system like bad residue. “sudo apt-get clean” will clear the repository completely, leaving only the lock that is used to connect to your repo’s.
Sometimes apt-get’s built in cleanup functionality doesn’t cut it. deborphan finds “orphaned” packages on your system. It determines which packages have no other packages depending on their installation, and shows you a list of these packages. It is most useful when finding libraries, but it can be used on packages in all sections. deborphan is in the universe so grab it by typing “sudo apt-get install deborphan.” It should show up under System > Administration > Remove orphaned packages after the install.