Here’s how to use deborphan to remove orphaned packages and save disk space in Linux Mint / Ubuntu:
1. Issue the following command at the terminal –
sudo apt-get install deborphan
2. After the installation is complete, issue the following command at the terminal to find orphan packages in the system –
3. To remove the orphan packages and free up disk space, issue the following command at the terminal –
sudo apt-get remove <orphan package name 1> <orphan package name 2> <orphan package name 3>…<orphan package name n>
Orphan package names will be names shown in the orphan package list from step 2.