====== Ubuntu - apt - Display package dependencies ======
The **depends** option shows a listing of each dependency a package has and all the possible other packages that can fulfill that dependency.
apt depends [package name]
----
===== Example =====
apt depends sudo
returns:
sudo
Depends: libaudit1 (>= 1:2.2.1)
Depends: libc6 (>= 2.34)
Depends: libpam0g (>= 0.99.7.1)
Depends: libselinux1 (>= 3.1~)
Depends: zlib1g (>= 1:1.2.0.2)
Depends: libpam-modules
Depends: lsb-base
Conflicts: sudo-ldap
Replaces: sudo-ldap
----
===== Recursive dependency listing =====
This is similar to apt-cache.
apt rdepends [package name]
----
===== Example =====
apt rdepends sudo
returns:
sudo
Reverse Depends:
Recommends: hobbit-plugins (>= 1.7.2p1-1)
Suggests: rocm-smi-lib5.4.6
sudo-ldap
Suggests: rocm-smi-lib
sudo-ldap
Suggests: qemu-user-static
sudo-ldap
|Recommends: cockpit-system
sudo-ldap
|Recommends: cockpit-system
sudo-ldap
Depends: zfs-test
sudo-ldap
Depends: v4l2loopback-utils
sudo-ldap
Depends: ubuntu-dev-tools
sudo-ldap
Replaces: sudo-ldap
sudo-ldap
Conflicts: sudo-ldap
Suggests: qemu-user-static
sudo-ldap
Depends: libkf5su5
sudo-ldap
Depends: ctdb
sudo-ldap
|Recommends: cockpit-system
sudo-ldap
Depends: ubiquity-casper
sudo-ldap
Depends: livecd-rootfs
sudo-ldap
Recommends: dkms
sudo-ldap
Depends: ceph-osd
sudo-ldap
Depends: casper
sudo-ldap
Depends: publicfile-installer
sudo-ldap
Depends: matlab-support
sudo-ldap
Depends: zfs-test
sudo-ldap
Suggests: zabbix-server-pgsql
sudo-ldap
Suggests: zabbix-server-mysql
sudo-ldap
Suggests: xfce4-session
sudo-ldap
Recommends: winetricks
sudo-ldap
Suggests: wajig
sudo-ldap
Depends: vagrant-lxc
sudo-ldap
Depends: v4l2loopback-utils
sudo-ldap
Depends: ubuntu-dev-tools
sudo-ldap
Depends: tomb
sudo-ldap
Recommends: task-desktop
sudo-ldap
Replaces: sudo-ldap
sudo-ldap
Conflicts: sudo-ldap
Recommends: sshuttle
sudo-ldap
Depends: sidedoor-sudo
sudo-ldap
Recommends: reprotest
sudo-ldap
Suggests: ranger
sudo-ldap
Suggests: qemu-user-static
sudo-ldap
Recommends: q4wine
sudo-ldap
Depends: piuparts-slave-from-git-deps
sudo-ldap
Depends: piuparts-slave
sudo-ldap
Suggests: pconsole
sudo-ldap
Recommends: pbuilder
sudo-ldap
Depends: ospd-openvas
sudo-ldap
Recommends: open-infrastructure-system-config
sudo-ldap
Recommends: open-infrastructure-container-tools
sudo-ldap
Depends: octopussy
sudo-ldap
Depends: obs-build
sudo-ldap
Suggests: nsntrace
sudo-ldap
Suggests: nohang
sudo-ldap
Suggests: mountpy
sudo-ldap
Recommends: monitoring-plugins-standard
sudo-ldap
Depends: mini-buildd
sudo-ldap
Depends: luckyluks
sudo-ldap
Recommends: live-config
sudo-ldap
Enhances: liquidprompt
sudo-ldap
Depends: libkf5su5
sudo-ldap
Depends: ldap-account-manager-lamdaemon
sudo-ldap
|Depends: jenkins-debian-glue
sudo-ldap
|Recommends: inxi
sudo-ldap
Depends: ibus-keyman
sudo-ldap
Depends: casper
sudo-ldap
Depends: gnumed-server
sudo-ldap
Depends: gkdebconf
sudo-ldap
Suggests: git-buildpackage
sudo-ldap
Suggests: fvwm-crystal
sudo-ldap
Depends: freedombox
sudo-ldap
Depends: freedom-maker
sudo-ldap
Depends: fpart
sudo-ldap
Depends: elida
sudo-ldap
Suggests: debspawn
sudo-ldap
Depends: debian-installer-launcher
sudo-ldap
Depends: debci
sudo-ldap
Depends: ctdb
sudo-ldap
Suggests: configure-debian
sudo-ldap
|Recommends: cockpit-system
sudo-ldap
Recommends: cinnamon-core
sudo-ldap
Recommends: bundler
sudo-ldap
Recommends: buildd
sudo-ldap
Suggests: biglybtd
sudo-ldap
Recommends: apt-src
sudo-ldap
Recommends: apt-dater-host
sudo-ldap
Depends: ubuntu-server-minimal
sudo-ldap
Depends: ubuntu-minimal
sudo-ldap
Depends: ubiquity-casper
sudo-ldap
Depends: python3-oslo.rootwrap
sudo-ldap
Depends: livecd-rootfs
sudo-ldap
|Suggests: live-build
sudo-ldap
Suggests: etckeeper
sudo-ldap
Recommends: dkms
sudo-ldap
Suggests: debian-goodies
sudo-ldap
Depends: ceph-osd
sudo-ldap