Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to list out the dependencies of a software/package in Ubuntu?

share|improve this question
up vote 1 down vote accepted
apt-cache depends package

apt-cache depends shows a listing of each dependency a package has and all the possible other packages that can fulfill that dependency. (see: man apt-cache)

share|improve this answer

Install apt-rdepends in Ubuntu

sudo aptitude install apt-rdepends

This will install all the required packages.

Using apt-rdepends

apt-rdepends Syntax

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

apt-rdepends Examples

sudo apt-rdepends bash

Output looks like below

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

Type dpkg-deb -I file in a terminal. Note "file" represents the package whose dependencies you want to see.

share|improve this answer
When I run "dpkg-deb -I totem", it says no such file found. Hence, I don't think this is an apt answer. – harisibrahimkv May 4 '12 at 0:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.