Debian Admin

Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips

  • Sponsor

  • Categories

  • Sponsor

  • Meta

  • Archives

Recursively lists package dependencies Using apt-rdepends

Posted by Admin on December 29th, 2006

apt-rdepends searches through the APT cache to find package dependencies. apt-rdepends knows how to emulate the result of calling apt-cache with both depends and dotty options.

By default, apt-rdepends shows a listing of each dependency a package has.It will also look at each of these fulfilling packages, and recursively lists their dependencies.

Install apt-rdepends in Debian

#apt-get install apt-rdepends

Install apt-rdepends in Ubuntu

sudo apt-get install apt-rdepends

This will complete the installation

apt-rdepends Syntax

apt-rdepends [options] [pkgs ...]

Examples

# apt-rdepends bash

Output looks like below

Reading package lists… Done
Building dependency tree… Done
bash
Depends: base-files (>= 2.1.12)
Depends: debianutils (>= 2.15)
PreDepends: libc6 (>= 2.3.6-6)
PreDepends: libncurses5 (>= 5.4-5)
base-files
Depends: awk
Depends: base-passwd (>= 2.0.3.4)

# apt-rdepends -d bash

Output Looks like below

Reading package lists… Done
Building dependency tree… Done
digraph packages {
concentrate=true;
size=”30,40″;
“bash” [shape=box];
“bash” -> “base-files”;
“bash” -> “debianutils”;
“bash” -> “libc6″[color=blue];
“bash” -> “libncurses5″[color=blue];
}

If you want more available options check apt-rdepends man page

  • Share/Bookmark

One Response to “Recursively lists package dependencies Using apt-rdepends”

  1. dafc Says:

    Thanks for the info, the topics i have seen so far on this blog have been really helpful and informative. Keep up the effort. Thanks again :)

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>