How to Clean up Unnecessary Packages in Ubuntu

By | August 30, 2019

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 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

References:
https://ubuntuforums.org/showthread.php?t=2120319

Leave a Reply

Your email address will not be published. Required fields are marked *