$ 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