How to Uninstall or Install deborphan Ubuntu 22.04

Updated: September 5, 2022

deborphan finds “orphaned” packages on your system. It determines which packages have no other packages depending on their installation and shows you a list of these packages. It is most useful when finding libraries, but it can be used on packages in all sections. I will show you how to install deborphan on Ubuntu 22.04 in this guide.

Software Requirement

  • Operating system: deborphan needs Ubuntu 22.04 to work
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install deborphan on Ubuntu 22.04

Install deborphan Ubuntu 22.04

deborphan is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install deborphan using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get deborphan on your Ubuntu 22.04.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install deborphan Ubuntu by executing this command in the terminal.

sudo apt-get -y install deborphan

Install deborphan using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

Then, you can now install deborphan by following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install deborphan Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install deborphan

Uninstall deborphan on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a deborphan.

You can uninstall deborphan on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove deborphan

If you want to uninstall deborphan and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge deborphan


In this tutorial, I showed you ways to install deborphan on Ubuntu 22.04 and some ways to uninstall deborphan too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.