Remove "orphaned" packages
"deborphan" 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...
Install "deborphan":
Code:
sudo apt-get install deborphan
Remove orphaned packages
Code:
sudo deborphan | xargs sudo apt-get -y remove --purge