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 man dpkg
.
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 man dpkg
.
apt-cache rdepends packagename
should do what you wantaptitude has a fairly nice way of handling this:
By default, it only lists the "most installed, strongest, tightest, shortest" reason, but you can use
aptitude -v why
to make it output everything it finds.Example:
The simplest option is still:
which does not require you to install any package.
There is more than one way, with each method showing a different output.
For a detailed view of the full reverse dependency tree;
Alternatively;
Or a concise list:
In addition to other good answers, an
apt/apt-get -s
does a "simulated" removal (or install).Using
-s
or--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 theinstall
orremove
. Informational only.With the
reverse-depends
command from the package:ubuntu-dev-tools