The equery tool is used for viewing package information.

(b)elongs
list what package FILES belong to
(c)hanges
list changelog entries for ATOM
chec(k)
verify checksums and timestamps for PKG
(d)epends
list all packages directly depending on ATOM
dep(g)raph
display a tree of all dependencies for PKG
(f)iles
list all files installed by PKG
h(a)s
list all packages for matching ENVIRONMENT data stored in /var/db/pkg
(h)asuse
list all packages that have USE flag
ke(y)words
display keywords for specified PKG
(l)ist
list package matching PKG
(m)eta
display metadata about PKG
(s)ize
display total size of all files owned by PKG
(u)ses
display USE flags for PKG
(w)hich
print full path to ebuild for PKG

Show Package Files

~ $ equery files pciutils
~ $ equery files dev-lang/php

Show Package Size

~ $ equery size pciutils
~ $ equery s dev-lang/php

Which Package Owns File

~ $ equery belongs /usr/bin/which
~ $ equery b libgnutls-openssl.so.26.16.14
~ $ equery b $(which awk)