Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hxmuller/5b8304e2691da69c2a213418ae2b8410 to your computer and use it in GitHub Desktop.
Save hxmuller/5b8304e2691da69c2a213418ae2b8410 to your computer and use it in GitHub Desktop.
list reverse dependencies for Debian package
# apt-cache - query the APT cache
# rdepends shows a listing of each reverse dependency a package has
# --no-suggests omit suggests dependencies
# --no-conflicts omit conflicts dependencies
# --no-breaks omit breaks dependencies
# --no-replaces omit replaces dependencies
# --no-enhances omit enhances dependencies
# --installed limit the output to packages which are currently installed
# --recurse make recursive so all packages mentioned are printed once
apt-cache rdepends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --installed --recurse packaage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment