Searching & Removing Unused Linux Packages (SRULP)


SRULP:   SOLD       




Running low on disk space? You may need to check for unused packages (orphaned packages) on your hard drive. Orphaned packages are dependencies or libraries installed alongside software in your Linux system.

As you might know, whenever you install an application, additional packages (dependencies) are often installed with it. These dependencies may remain on your hard drive even after the application has been uninstalled.

Over time, your hard drive can become cluttered with unused or abandoned packages, potentially causing you to run out of disk space.

Low disk space not only affects system performance but also prevents you from installing new applications due to insufficient space. Therefore, it is highly recommended to periodically remove orphaned packages.

Finding and Removing Unused Packages on Ubuntu and Derivatives

First, let’s look at how to identify and remove unused packages on Ubuntu and its derivatives, such as Linux Mint or Elementary OS.

Deborphan is a command-line utility that can be used to find and remove unused or orphaned packages on DEB-based systems. It is available in the official repositories. To install it, open a terminal and run the following command:

$ sudo apt-get install deborphan


Once installed, run the following command to list the orphaned packages:

$ deborphan


This will display all unused packages:

openoffice.org-hyphen  
rhythmbox-plugin-magnatune  
myspell-en-gb  
libgnutls-openssl27  
myspell-en-za  
libusb-0.1-4  
libreadline6


As shown above, I have several unused packages on my Ubuntu system.

To remove the orphaned packages, run:

$ sudo orphaner


Select the files and choose "Ok" to remove them all.

And that's it!


Post a Comment

Previous Next

نموذج الاتصال