{"id":1350,"date":"2022-02-04T05:03:09","date_gmt":"2022-02-04T05:03:09","guid":{"rendered":"\/blog\/?p=1350"},"modified":"2022-03-06T04:33:55","modified_gmt":"2022-03-06T04:33:55","slug":"solaris-11-package-management-ips-cheatsheet","status":"publish","type":"post","link":"\/blog\/index.php\/solaris-11-package-management-ips-cheatsheet\/","title":{"rendered":"Solaris 11 package management (IPS) cheatsheet"},"content":{"rendered":"\n<p>Install a package called diagnostic\/wireshark:<br><code>pkg install diagnostic\/wireshark<br><\/code>Uninstall a package called diagnostic\/wireshark using a short form of the package<br>name:<br><code>pkg uninstall wireshark<br><\/code>Update all possible packages to the newest version, including all Oracle Solaris zones:<br><code>pkg update<br><\/code>Do a dry run of an update of all possible packages to the newest version:<br><code>pkg update -nv<br><\/code>Update all system packages to the newest version and require a new BE:<br><code>pkg update --be-name fix-nfs-issue<\/code><\/p>\n\n\n\n<p>List packages currently installed on a system:<br><code>pkg list<br><\/code>Show information about an installed package called wireshark:<br><code>pkg info wireshark<br><\/code>Show information about an uninstalled package called xchat:<br><code>pkg info -r xchat<br><\/code>Show the contents of an installed package called wireshark:<br><code>pkg contents wireshark<br><\/code>Show all PNG files of an installed package called wireshark:<br><code>pkg contents -o path -a path=*.png wireshark<br><\/code>Search all locally installed packages for the match gcc:<br><code>pkg search -l gcc<br><\/code>Search all packages in the configured repositories that contain dev header<br>gcrypt-module.h:<br><code>pkg search 'gcrypt-module.h'<br><\/code>Search for all packages in the configured repositories that have the<br>classification Web Services\/Application and Web Servers:<br><code>pkg search -o pkg.name 'set:info.classification:*Application<br><\/code>and Web Servers&#8217;<br>Search for all packages installed locally that have a dependency on<br>library\/libxml2:<br><code>pkg search \u2013l -o pkg.name 'depend::library\/libxml2'<\/code><\/p>\n\n\n\n<p>Browse package command history (includes graphical Package Manager client):<br><code>pkg history<br><\/code>Purge package command history:<br><code>pkg purge-history<br><\/code>Verify the integrity of the current system image:<br><code>pkg verify<br><\/code>Verify the integrity of installed package called wireshark:<br><code>pkg verify wireshark<br><\/code>Fix any errors reported by pkg verify on an installed package called wireshark:<br><code>pkg fix wireshark<br><\/code>Freeze a package called wireshark to prevent any accidental future updates:<br><code>pkg freeze wireshark<\/code><\/p>\n\n\n\n<p>List currently associated publishers:<br><code>pkg publisher<br><\/code>Add a publisher at a specified repository URI:<br><code>pkg set-publisher -p http:\/\/www.example.com\/solaris11<br><\/code>Add a publisher:<br><code>pkg set-publisher -g http:\/\/www.example.com\/solaris11 siteapps<br><\/code>Remove a publisher:<br><code>pkg unset-publisher siteapps<br><\/code>Query a repository URI for publisher names and package counts:<br><code>pkgrepo -s http:\/\/pkg.oracle.com\/solaris\/release info<br><\/code>Change to the Oracle Solaris support repository with pre-downloaded certificates<br>and keys from the Oracle Solaris release repository:<br><code>pkg set-publisher -G http:\/\/pkg.oracle.com\/solaris\/release \\<br>-g http:\/\/pkg.oracle.com\/solaris\/support -k \/path\/to\/ssl_key \\<br>-c \/path\/to\/ssl_cert solaris<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install a package called diagnostic\/wireshark:pkg install diagnostic\/wiresharkUninstall a package called diagnostic\/wireshark using a short form of the packagename: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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1350","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1350"}],"version-history":[{"count":2,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1350\/revisions"}],"predecessor-version":[{"id":1382,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1350\/revisions\/1382"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1350"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}