pquery usage ------------ Basics ====== pquery is used to extract various kinds of information about either installed or uninstalled packages. As you probably guessed from the name it is similar to equery, but it can do things equery cannot do and is a bit more flexible. What pquery does is select packages from one or more "repositories" that match a boolean combination of restrictions, then print selected information about those packages. It is important to understand that the information printing and repository selection options are almost completely separate from the restriction options. The only exception to that is that restrictions on contents automatically select the vdb (installed packages) repository, since running them on source repos makes no sense. Another switch that could do with some extra explanation is ``--raw``. Specifying ``--raw`` makes your configuration not affect the results. Example: :: $ pquery --attr alldepends -m dbus --max -v * sys-apps/dbus-0.62-r1 description: A message bus system, a simple way for applications to talk to each other homepage: http://dbus.freedesktop.org/ depends: >=dev-libs/glib-2.6 || ( ( x11-libs/libXt x11-libs/libX11 ) virtual/x11 ) >=x11-libs/gtk+-2.6 >=dev-lang/python-2.4 >=dev-python/pyrex-0.9.3-r2 >=dev-libs/expat-1.95.8 dev-util/pkgconfig sys-devel/automake >=sys-devel/autoconf-2.59 sys-devel/libtool rdepends: >=dev-libs/glib-2.6 || ( ( x11-libs/libXt x11-libs/libX11 ) virtual/x11 ) >=x11-libs/gtk+-2.6 >=dev-lang/python-2.4 >=dev-python/pyrex-0.9.3-r2 >=dev-libs/expat-1.95.8 post_rdepends: $ This is the highest unmasked package on my system. Also notice there are no references to USE flags or qt in the dependencies. That is because I do not have qt in USE in my configuration, so those dependencies do not apply.:: $ pquery --attr alldepends -m dbus --max -v --raw * sys-apps/dbus-0.91 description: Meta package for D-Bus homepage: http://dbus.freedesktop.org/ depends: rdepends: >=sys-apps/dbus-core-0.91 python? ( >=dev-python/dbus-python-0.71 ) qt3? ( >=dev-libs/dbus-qt3-old-0.70 ) gtk? ( >=dev-libs/dbus-glib-0.71 ) !