It’s very easy for your PC to accumulate a lot of unused libraries over a period of time. BleachBit a very useful utility to cleanup trash, but it won’t be able to fish out installed libraries that got orphaned. In other words, there are several dependencies that get pulled by an application installation, but the same application when uninstalled, may not delete the installed dependencies. Therefore it’s now a junk in your PC.
In this article, we will take a look at GtkOrphan, a free utility that can scan and find the orphaned libraries on your Ubuntu and derivatives, thus regaining your lost hard disk space.
Install GtkOrphan on Ubuntu, Linux Mint, and elementary OS
GtkOrphan is included in Debian and Ubuntu repositories. Hence you can simply install it by apt-get command.
Step 1: Launch ‘Terminal’.
Step 2: Run the following command:
sudo apt-get install gtkorphan
Enter root password to complete the installation. After installation is complete, you will can it from ‘Applications’. It gets listed as ‘Remove Orphaned Packages’.
GtkOrphan is for everyone, but…
GtkOrphan will scan and show the results in two tabs i.e. Orphaned packages and Non-orphaned packages. It’s the Orphaned packages tab that shows all the orphaned libraries that can be safely deleted.
Use caution when using additional ‘Options’
By default settings, GtkOrphan only lists the orphaned packages from the ‘libs’ section. But expanding ‘Options’ will give additional feature to remove orphaned packages from everywhere and this is where you have to exercise caution.
With this option turned ON, GtkOrphan will report all those installed packages that are not dependencies for any other. In other words, packages such as gparted, ubuntu-desktop, wine will be listed too, as they are top-level packages and no other package depends on them. Therefore, you must carefully go through this list and right-click ‘Hibernate package’ which will keep these packages from being removed and will not show in the scan list anymore. However, you can access and modify the hibernation list from the ‘View’ menu or from the right-click popup menu.