Gentoo portage. How to find out why some particular package is installed

gentooportage

Well, some packages are installed by my explicit request. These packages are listed in /var/lib/portage/world.

But there are packages installed because they required by some of these explicitly installed packages.

Let's say I found out that some package aaa/bbb-1.2.3 is installed on my system. It's not in the world set. So there must be one or several packages in the world set which require (may be indirectly) the aaa/bbb package. How can I find out what are these packages? As a bonus I want to be able to understand why is is version 1.2.3 which is installed.

equery (d)epends command (installed by app-portage/gentoolkit package) can "list all packages directly depending on ATOM". But it's quite far from what I need.

Best Answer

You can see all the packages that depend on the package (and which version they pull in) with:

emerge -pv --depclean <package-name>

Or maybe the output from

equery d -D <package-name>

is what you want: a tree of all the packages that indirectly depend on the package

Related Question