For example, openjdk-7-jdk
in trusty depends on systemd
. How do I figure out dependency chain that leads to systemd
? I tried debtree openjdk-7-jdk
and apt-rdepends openjdk-7-jdk
, but they don't list systemd
. What am I doing wrong?
Asked
Active
Viewed 138 times
2

x-yuri
- 581
- 2
- 7
- 19
1 Answers
2
The reason I failed was that systemd
is pulled in as a recommendation. This way you can see the recommendations as well:
apt-rdepends openjdk-7-jdk --follow Depends,PreDepends,Recommends \
--show Depends,PreDepends,Recommends | grep systemd
The dependency chain is as follows:
http://packages.ubuntu.com/trusty-updates/openjdk-7-jdk
http://packages.ubuntu.com/trusty-updates/openjdk-7-jre
http://packages.ubuntu.com/trusty-updates/libgtk-3-0
http://packages.ubuntu.com/trusty/libcolord1 (recommends colord)
http://packages.ubuntu.com/trusty/colord
http://packages.ubuntu.com/trusty-updates/policykit-1
http://packages.ubuntu.com/trusty-updates/libpam-systemd
http://packages.ubuntu.com/trusty-updates/systemd-services

x-yuri
- 581
- 2
- 7
- 19
apt depends --recurse openjdk-7-jdk
, but it will produce tons of output. – Byte Commander Jan 01 '17 at 21:23E: Command line option --recurse is not understood
.debtree
andapt-rdepends
don't have such an option. I believe they must recurse by default. – x-yuri Jan 02 '17 at 09:17