Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.

share|improve this question

4 Answers

up vote 3 down vote accepted

apt-cache rdepends packagename should do what you want

share|improve this answer
1  
Excellent! apt-cache rdepends tofrodos confirmed the suspicion that it was installed by another package (the obsoleted dos2unix). – l0b0 Apr 30 '12 at 13:12
Good deal. I do wish there was a recursive option. Sadly there is not as far as I am aware. – Call me V Apr 30 '12 at 13:27

There are more than one way, with each method showing a different output.

For a detailed view of the dependency tree; aptitude install apt-rdepends apt-rdepends bash

Alternatively;

apt-cache showpkg bash

Or a concise list:

apt-cache rdepends bash

share|improve this answer

aptitude has a fairly nice way of handling this:

$ aptitude why bash
i   foomatic-filters PreDepends bash (>= 2.05)

It only lists one reason, but that's usually enough...

share|improve this answer

apt-cache showpkg

ex : apt-cache showpkg lightdm

share|improve this answer

Your Answer

 
discard

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.