How do I get a list of installed packages in Gentoo?

gentoo.gif

The qpkg tool comes in handy for this task. You may need to emerge gentoolkit to use it.

Code:
qpkg -I

This will show a list of installed packages, but will not differentiate versions.


Example:

Code:
# qpkg -I glib
dev-libs/glib *
gnome-extra/glibwww *
sys-libs/glibc *


Code:
qpkg -I -v

This will show a list of installed packages in verbose format. Verbose will show multiple versions of the same package.
Example:

Code:
# qpkg -I -v glib
sys-libs/glibc-2.2.5-r7 *
dev-libs/glib-1.2.10-r4 *
dev-libs/glib-2.0.7 *
gnome-extra/glibwww-0.2-r2 *

Also see: man qpkg

Related Posts

2 Comments

  1. dpminusa says:

    What version of Gentoo is this referencing. I am running: 2.6.28.

    My qprg does not support the -I option.

    Options: -[cEpP:vqChV]
    -c, –clean * clean pkgdir of unused binary files
    -E, –eclean * clean pkgdir of files not in the tree anymore (slow)
    -p, –pretend * pretend only
    -P, –pkgdir * alternate package directory
    -v, –verbose * Make a lot of noise
    -q, –quiet * Tighter output; suppress warnings
    -C, –nocolor * Don’t output color
    -h, –help * Print this help and exit
    -V, –version * Print version and exit

  2. dpminusa says:

    That s/b qpkg in line 2 above.

    Question still open.

    Thanks.