After installing Ubuntu, there must be times when you feel the need to free some space on your hard drive. This post will introduces some of easy way to clean up Ubuntu unnecessary packages and regain some free spaces back.
Getting rid of partial packages:
sudo apt-get autoclean && apt-get autoremove
Getting rid of “orphaned” packages:
sudo apt-get install deborphan
sudo deborphan | xargs sudo apt-get -y remove --purge