solaris 11 cheat sheet packaging

Install a package called diagnostic/wireshark:
# pkg install diagnostic/wireshark

Install a group package to provide a desktop environment:
# pkg install solaris-desktop

Update all possible packages to the newest version, including any zones:
# pkg update

Do a dry run of a system update to understand what packages may change:
# pkg update -nv

Uninstall a package called diagnostic/wireshark:
# pkg uninstall wireshark


Get more information about an installed package called diagnostic/wireshark:
# pkg info wireshark


Search all packages in the configured repositories for a file called math.h:
# pkg search math.h

Search for all packages installed on a system that have a dependency on library/libxml2:
# pkg search -l -o pkg.name 'depend::library/libxml2'

List currently associated package publishers:
# pkg publisher

Connect to the Oracle support repository and update the system:
# pkg set-publisher -g https://pkg.oracle.com/solaris/support \ -G http://pkg.oracle.com/solaris/release -k /path/to/ssl_key \ -c /path/to/ssl_cert solaris
# pkg update

pkg list "*group*"
NAME (PUBLISHER) VERSION IFO
group/feature/storage-server 0.5.11-0.175.0.0.0.2.1 i--
group/system/solaris-large-server 0.5.11-0.175.0.0.0.2.2576 i--

This entry was posted in solaris. Bookmark the permalink.

Comments are closed.