Can someone let me know how can I view all the nested dependencies of a package in Ubuntu? For example,
support@vrni-platform:/tmp$ sudo apt-cache depends hadoop-yarn-resourcemanager
hadoop-yarn-resourcemanager
Depends: hadoop-yarn
support@vrni-platform:/tmp$ sudo apt-cache depends hadoop-yarn
hadoop-yarn
Depends: libc6
Depends: adduser
Depends: bigtop-utils
Depends: hadoop
Depends: avro-libs
Depends: zookeeper
I am looking for something like below. Somewhat similar to mvn dependency:tree
hadoop-yarn-resourcemanager
Depends: hadoop-yarn
Depends: libc6
Depends: adduser
Depends: bigtop-utils
Depends: hadoop
Depends: avro-libs
Depends: zookeeper
I have seen this question but I am looking for complete dependency tree.
This question is quite old, however apt-cache currently has a --recurse option for depends and rdepends that makes this easy:
apt-cache depends -i --recurse <packagename>
You probably also want the -i as that limits output to actual Depends:, filtering out non-essentials like Recommends: and Suggests:.
With the above options, the output can be enormous as it will include every package down to the kernel itself! With simple packages this might be no big deal, but for a desktop environment or even a large application...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With