Install a package called diagnostic/wireshark:pkg install diagnostic/wiresharkUninstall a package called diagnostic/wireshark using a short form of the package
name:pkg uninstall wiresharkUpdate all possible packages to the newest version, including all Oracle Solaris zones:pkg updateDo a dry run of an update of all possible packages to the newest version:pkg update -nvUpdate all system packages to the newest version and require a new BE:pkg update --be-name fix-nfs-issue
List packages currently installed on a system:pkg listShow information about an installed package called wireshark:pkg info wiresharkShow information about an uninstalled package called xchat:pkg info -r xchatShow the contents of an installed package called wireshark:pkg contents wiresharkShow all PNG files of an installed package called wireshark:pkg contents -o path -a path=*.png wiresharkSearch all locally installed packages for the match gcc:pkg search -l gccSearch all packages in the configured repositories that contain dev header
gcrypt-module.h:pkg search 'gcrypt-module.h'Search for all packages in the configured repositories that have the
classification Web Services/Application and Web Servers:pkg search -o pkg.name 'set:info.classification:*Applicationand Web Servers’
Search for all packages installed locally that have a dependency on
library/libxml2:pkg search –l -o pkg.name 'depend::library/libxml2'
Browse package command history (includes graphical Package Manager client):pkg historyPurge package command history:pkg purge-historyVerify the integrity of the current system image:pkg verifyVerify the integrity of installed package called wireshark:pkg verify wiresharkFix any errors reported by pkg verify on an installed package called wireshark:pkg fix wiresharkFreeze a package called wireshark to prevent any accidental future updates:pkg freeze wireshark
List currently associated publishers:pkg publisherAdd a publisher at a specified repository URI:pkg set-publisher -p http://www.example.com/solaris11Add a publisher:pkg set-publisher -g http://www.example.com/solaris11 siteappsRemove a publisher:pkg unset-publisher siteappsQuery a repository URI for publisher names and package counts:pkgrepo -s http://pkg.oracle.com/solaris/release infoChange to the Oracle Solaris support repository with pre-downloaded certificates
and keys from the Oracle Solaris release repository:pkg set-publisher -G http://pkg.oracle.com/solaris/release \
-g http://pkg.oracle.com/solaris/support -k /path/to/ssl_key \
-c /path/to/ssl_cert solaris