Ways to Install or Uninstall apt-rdepends on Ubuntu 22.04

Updated: October 26, 2022

This utility can recursively list package dependencies, either forwards or in reverse. It also lists forward build-dependencies. The output format closely resembles that of apt-cache depends. As well, it can generate .dot graphs, much like apt-cache in dotty mode. In this tutorial, I will show you how to install apt-rdepends on Ubuntu 22.04.

Prerequisites to install

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install apt-rdepends on Ubuntu 22.04

Install apt-rdepends Ubuntu 22.04

apt-rdepends 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 that you think is easy and you can follow.

Install apt-rdepends using APT

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these instructions to get apt-rdepends on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install apt-rdepends Ubuntu by executing this command in the terminal.

sudo apt-get install apt-rdepends

Install apt-rdepends using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

After installing aptitude, you can now install apt-rdepends by following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install apt-rdepends Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install apt-rdepends

Uninstall apt-rdepends 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 apt-rdepends.

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

sudo apt remove --auto-remove apt-rdepends

If you want to uninstall apt-rdepends and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge apt-rdepends

Summary

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