apt-rdepends command not found

In this troubleshooting guide we learn how to fix apt-rdepends command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

apt-rdepends: command not found

or when using sudo you get the following error message

sudo: apt-rdepends: command not found

Solutions to apt-rdepends: command not found

How To Fix apt-rdepends: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu apt-rdepends is provided by apt-rdepends package.

apt-rdepends is:

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.

To fix this problem, we can install more using the command below.

sudo apt-get -y install apt-rdepends

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install apt-rdepends.

sudo apt -y install apt-rdepends

Or if you have aptitude installed you can use the following command.

sudo aptitude install apt-rdepends

Summary

In this tutorial we learn how to fix apt-rdepends command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.