How To Find Out Package Dependencies in Ubuntu With apt-rdepends

By Sajan Gurung on December 21st, 2011No Comments

This tutorial will teach you how to find out or check all the dependencies of a package in Ubuntu using apt-rdepends.

apt_rdepends

apt-rdepends is the utility that performs recursive dependency listings of a Debian/Ubuntu package. This open source utility searches throught the  APT cache to find out all the package dependencies.

In Ubuntu , you can install apt-rdepends by running following commands in the terminal.

sudo apt-get install apt-rdepends

Once installed, you need to run following command to list down all the dependencies of a package using apt-rdepends.

apt-rdepends <package_name>

where,

<package_name> is the name of the package dependencies of which you are going to check.

For example,

To list down the dependencies of tar package, we need to run the following command in the terminal.

apt-rdepends tar

The output is as shown below.

sajan@sajan-desktop:~$ apt-rdepends tar
Reading package lists… Done
Building dependency tree
Reading state information… Done
tar
PreDepends: libc6 (>= 2.8)
libc6
Depends: libc-bin (= 2.13-20ubuntu5)
Depends: libgcc1
Depends: tzdata
libc-bin
libgcc1
Depends: gcc-4.6-base (= 4.6.1-9ubuntu3)
Depends: libc6 (>= 2.2.5)
PreDepends: multiarch-support
gcc-4.6-base
multiarch-support
Depends: libc6 (>= 2.3.6-2)
tzdata
Depends: debconf (>= 0.5)
Depends: debconf-2.0
debconf
PreDepends: perl-base (>= 5.6.1-4)
perl-base
PreDepends: dpkg (>= 1.14.20)
PreDepends: libc6 (>= 2.11)
dpkg
PreDepends: coreutils (>= 5.93-1)
PreDepends: libbz2-1.0
PreDepends: libc6 (>= 2.11)
PreDepends: libselinux1 (>= 1.32)
PreDepends: xz-utils
PreDepends: zlib1g (>= 1:1.1.4)
coreutils
PreDepends: libacl1 (>= 2.2.11-1)
PreDepends: libattr1 (>= 2.4.41-1)
PreDepends: libc6 (>= 2.7)
PreDepends: libselinux1 (>= 1.32)
libacl1
Depends: libattr1 (>= 2.4.41-1)
Depends: libc6 (>= 2.4)
PreDepends: multiarch-support
libattr1
Depends: libc6 (>= 2.4)
PreDepends: multiarch-support
libselinux1
Depends: libc6 (>= 2.8)
PreDepends: multiarch-support
libbz2-1.0
Depends: libc6 (>= 2.4)
xz-utils
Depends: libc6 (>= 2.7)
Depends: liblzma2 (>= 5.0.0)
liblzma2
Depends: libc6 (>= 2.4)
zlib1g
Depends: libc6 (>= 2.4)
PreDepends: multiarch-support
debconf-2.0

In this way, you can find out package dependencies in Ubuntu with apt-rdepends. For more details, you can check out its man page for apt-rdepends from here.

 

Related posts:

Follow the Author:  
share