I was wondering if it was possible to check what package another package is a dependency of.

For example, jetty is mysteriously installed and running on my system and I'd like to check whether it is a dependency of something else.

link|improve this question
feedback

3 Answers

up vote 8 down vote accepted

You can use apt-cache rdepends jetty to see what depends on jetty. This will show both depends & recommends, so you may want to check through the list of packages to see what the relationship is with jetty.

link|improve this answer
feedback

If you open Synaptic and find the package, you can right click on it and select Properties. Under the tab Dependencies you can see the packages that jetty depend on, and which packages is dependent on jetty (the dropdown list).

link|improve this answer
feedback

Go install apt-rdepends. It doesn't only show immediate dependencies, but all the recursive ones, so will tend to give you a large output. So, use a pager as well.

  • To display recursive depends: $ apt-rdepends jetty | pager.
  • To display recursive reverse depends: $ apt-rdepends --reverse jetty | pager.
link|improve this answer
1  
The OP was asking for reverse dependencies, not recursive dependencies. Confusingly, apt-rdepends and apt-cache rdepends do very different things despite their similar appearance. – Flimm Feb 8 '11 at 18:28
@fli You made me look closer at my answer, and I have corrected it. Thanks. – Tshepang Feb 8 '11 at 20:49
feedback

Your Answer

 
or
required, but never shown

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