By RickRamsey-Oracle on Feb 13, 2012
Q: What's in this Solaris 10 package:
A: You cheated. You googled it and found the link to the Oracle Solaris 10 documentation.
You're in luck, because each release of the Solaris 10 documentation contains a Package List for that release. For example:
Now try this:
Q: What's in this Solaris 11 package:
The Solaris 11 documentation does not include a package list. You can find mentions of some packages through google, but it's hit and miss. And you still don't get the rest of the info about the package that the Solaris 10 documentation included. So how do you find out what Solaris 11 packages you just installed? Here are two methods.
pkg list Command
pkg list command lists all the packages currently installed on your system. If you use it, redirect the output to a file so your screen doesn't wind up looking like a scene out of The Matrix. Since package naming is hierarchical, you are likely to find similar packages grouped together in the list. For example:
$ pkg list . . . compress/bzip2 compress/gzip compress/p7zip compress/unzip compress/zip . . . editor/gedit editor/nano editor/vim
You can just list a subset of the packages you are interested in:
$ pkg list driver/network/ethernet/*
By the way, to list all packages that are available for you to install, add -a to the
pkg-list command. This example asks for the name of all the packages you can install in the
$ pkg list -a editor/*
One you have a list of the packages, you can use one of the commands below to get additional info about each package.
pkg info and
pkg infocommand provides detailed information about a particular IPS package. For example:
$ pkg info p7zip Name: compress/p7zip Summary: The p7zip compression and archiving utility Description: P7zip is a unix port of the 7-Zip utility. It has support for numerous compression algorithms, including LZMA and LZMA2, as well as for various archive and compression file formats, including 7z, xz, bzip2, gzip, tar, zip (read-write) and cab, cpio, deb, lzh, rar, and rpm (read-only). Category: System/Core State: Installed Publisher: solaris Version: 9.20.1 Build Release: 5.11 Branch: 0.175.0.0.0.2.537 Packaging Date: Wed Oct 19 09:13:22 2011 Size: 6.73 MB FMRI: pkg://email@example.com,5.11-0.175.0.0.0.2.537:20111019T091322Z
Here's another example:
$ pkg info -r solaris-large-server Name: group/system/solaris-large-server Summary: Oracle Solaris Large Server Description: Provides an Oracle Solaris large server environment Category: Meta Packages/Group Packages State: Not installed Publisher: solaris Version: 0.5.11 Build Release: 5.11 Branch: 0.175.1.0.0.9.2627 Packaging Date: Mon Feb 06 22:33:56 2012 Size: 5.45 kB FMRI: pkg://firstname.lastname@example.org,5.11-0.175.1.0.0.9.2627:20120206T223356Z
pkginfo command does the same for any SVR4 packages you may have installed on the same system.
For More Information
- Adding and Updating Oracle Solaris 11 Software Packages
- Basics of the Image Packaging System
- Best Way to Update Software Using the Image Packaging System
- Rick Ramsey with Alta Elstad