The apt-rdepends tool is quite versatile. The output is usually quite large depending on the dependency tree. It is not a regular apt command and you’ll have to install it from the universe repository: sudo apt install apt-rdepends So, you get the dependency of a package and the dependencies of the dependencies as well. This tool creates the complete dependency tree. If you want more details on the dependencies, you can use the apt-rdepends tool. Checking dependencies and reverse dependencies with apt-rdepends The dependencies can be seen in the line starting with Depends. In this case, you can use the dpkg command with -I or –info option.
But if you download a DEB file, these command won’t work. Thankfully, the APT package manager handles this for you by automatically installing all the dependencies (most of the time).Ĭheck the dependencies of a DEB file using dpkgīoth apt and apt-cache command work on the packages that are available from the repositories. Here’s a catch! The dependency package may also depend on some other package and the chain could go on. For more information, seeĪs you can see, ubuntu-restricted-extras package depends on ubuntu-restricted-addons package.
These software packages are from the Multiverse channel, restricted byĬopyright or legal issues in some countries. This software does not include libdvdcss2, and will not let you playĮncrypted DVDs.
LAME, software to create compressed audio files. software to install the Microsoft Web fonts MP3 and other audio codec software to play various audio formats Recommends: libavcodec-extra, ttf-mscorefonts-installer, unrarĪPT-Sources: focal/multiverse amd64 Packagesĭescription: Commonly used media codecs and fonts for Ubuntu Part of this information is dependencies and you can see it in the line starting with Depends.įor example, here’s what it shows for ubuntu-restricted-extras package. You can use the apt show command to display details of a package. Let’s see various ways to see the dependencies of a package. If you don’t have these packages installed on your system, they will be automatically installed when you install HandBrake on Ubuntu.Ĭheck dependencies of a package in Ubuntu and Debian based distributionsĪs it often happens in Linux, there are more than one way to achieve the same result. So for HandBrake, FFmpeg and GStreamer are the dependencies. If these dependency packages are not installed on the system, it is usually installed automatically with the package.įor example, the GUI tool HandBrake for converting video formats needs FFmpeg, GStreamer. These additional packages are called dependencies. If you didn’t know already, when you install a software package in Linux, sometimes, it needs other packages to function properly. In this tutorial, I’ll show you various ways to see the dependencies of a package in Ubuntu and other Debian-based Linux distributions that use APT package management system. All you need to do is to use apt install package_name.īut what if you want to know the dependencies of a package before or after installing it? Installing applications via command line is quite easy in Ubuntu/Debian.