NOTICE: Marked for importation into new handbook

 

To see your current package depot setting:

oi@openindiana:~$ pkg publisher
PUBLISHER                             TYPE     STATUS   URI
openindiana.org          (preferred)  origin   online   http://pkg.openindiana.org/dev/
opensolaris.org                       origin   online   http://pkg.openindiana.org/legacy/
oi@openindiana:~$

See what consolidation certain packages are in:

# pkg contents -t set -a name=org.opensolaris.consolidation -o pkg.name,value xterm kernel python-26
PKG.NAME          VALUE
runtime/python-26 userland
system/kernel     osnet
terminal/xterm    X

 

Lists all packages in the consolidation 'osnet':

pkg search -r '<set:org.opensolaris.consolidation:osnet>'

Lists all installed incorporations

pkg search -l -r '<:depend:incorporate:>'

Search for all the users delivered by packages

pkg search -r :user::

To see a package's installed content:

oi@openindiana:~$ pkg  contents gnupg
PATH
usr
usr/bin
usr/bin/gnupg-pcsc-wrapper
usr/bin/gpg-agent
usr/bin/gpg-check-pattern
usr/bin/gpg-connect-agent
usr/bin/gpg-preset-passphrase
usr/bin/gpg-protect-tool
<snipped>
usr/share/man/man1/watchgnupg.1
usr/share/man/man1m
usr/share/man/man1m/addgnupghome.1m
usr/share/man/man1m/applygnupgdefaults.1m
oi@openindiana:~$

Or the other way around: list which package a deployed file belongs to:

oi@openindiana% pkg search -l /usr/bin/gpg2
INDEX      ACTION VALUE        PACKAGE
path       file   usr/bin/gpg2 pkg:/crypto/gnupg@2.0.13-0.148
oi@openindiana%

To see the dependencies of a package:

oi@openindiana% pkg contents -H -t depend -o fmri ogg-vorbis
consolidation/gnome/gnome-incorporation
system/library/math@0.5.11-0.151.1
system/library@0.5.11-0.151.1