Skip to content

Instantly share code, notes, and snippets.

@dreadwarrior
Last active August 29, 2015 14:00
Show Gist options
  • Save dreadwarrior/11301360 to your computer and use it in GitHub Desktop.
Save dreadwarrior/11301360 to your computer and use it in GitHub Desktop.
Debian/apt: See why a package is installed
$ apt-cache rdepends --recurse $package

probably gives too many packages

I would add --installed option to restrict to installed packages. -i option restricts to pre-dependence and dependence related packages.

But a package may be installed because it is recommended by another package. To include such recommendation relateded packages, I suppose this would give the right ones:

$ apt-cache rdepends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --installed --recurse $package

@source: http://askubuntu.com/questions/5636/can-i-see-why-a-package-is-installed#comment505140_5637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment