In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in
In addition to other good answers, an
apt/apt-get -s does a "simulated" removal (or install).
sudo apt -s remove <pkgname>
--simulate to remove (or install) packages, will normally list any dependencies affected. It will show orphaned packages when removing, or needed dependencies when installing, without actually executing the
remove. Informational only.
reverse-depends command from the package:
reverse-depends libjs-openlayers # For build depends search reverse-depends -b libjs-openlayers
Reverse-Recommends * gis-osm Reverse-Depends * cyclograph * phpmyadmin * sumo-tools Packages without architectures listed are reverse-dependencies in: amd64, arm64, armhf, i386, ppc64el, s390x
--installed option of
apt-cache was mentioned in comments of RobotHumans's answer and does not make much sense as the matching is done against all versions, including uninstalled ones (see Debian bug 1029586), here's the solution proposed by Julian Andres Klode to get the reverse dependencies among the installed packages:
apt list '?any-version(?installed?depends(?exact-name(packagename)))'
packagename is just the package name, without architecture information. For instance,
libpcre3 works, but not