Equery

Introduction
The equery utility can be used to display information about packages, display various information, such as files, USE Flags, and checksum information.

install emerge app-portage/gentoolkit

Usage
The equery tool can be used to determine which package a file belongs to:

This produces, sys-apps/baselayout-1.12.11.1 (/usr/share/baselayout/passwd) sys-apps/shadow-4.0.18.2 (/usr/bin/passwd -> /bin/passwd) sys-apps/shadow-4.0.18.2 (/etc/pam.d/passwd) sys-apps/shadow-4.0.18.2 (/bin/passwd)

The equery tool can also be used to list packages that are dependent upon a particular package:

The equery tool can also be used to list files belonging to a package:

This produces, /etc /etc/init.d /etc/init.d/utelnetd /usr /usr/sbin /usr/sbin/utelnetd /usr/share /usr/share/doc /usr/share/doc/utelnetd-0.1.9 /usr/share/doc/utelnetd-0.1.9/ChangeLog.bz2 /usr/share/doc/utelnetd-0.1.9/README.bz2

The equery tool can also be used to list packages that utilize a particular USE flag. For example, the following would produce a list of packages that utilize the foobar flag,

The equery tool can also be used to list the USE flags in use by a package,

This produces, U I - - debug  : Enable extra debug codepaths, like asserts and extra output. - - justify : Toggle the justify option ... - - minimal : Install a very minimal build (disables, plugins, fonts, drivers, non-critical features) + + ncurses : Adds ncurses support (console display library) + + nls    : Adds Native Language Support (using gettext - GNU locale utilities) - - slang  : Adds support for the slang text display library (it's like ncurses, but different) - - spell  : Adds dictionary support - - unicode : Adds support for Unicode

Gentoolkit/equery