By User13277799-Oracle on Apr 17, 2012
There are several options how to find out if a specific package is delivered with Oracle Solaris 11.
Search Package Repository On Oracle Web
Go to the pkg.oracle.com, which provides access to Oracle Solaris 11 package repository. Make sure that the "Release and Branch" field points to "0.5.11-0.175.0.0.0.2.0", which identifies Oracle Solaris 11 11/11 (that is the first release of Oracle Solaris 11). Enter name of the package you are looking for in the "Search for:" text field, for example "gnu tar". The search will provide list of packages found. For "gnu tar", just one package is found:email@example.com,5.11-0.175.0.0.0.2.537:20111019T091116Z
Each package is represented by a Fault Management Resource Identifier (FMRI). Version of the package itself is encoded just after the "@" character, so in this case there GNU tar version 1.26 available in Oracle Solaris 11 11/11.
Click on the name of the package to get more information about the package in a human readable form including package license. Example output is as the following:
Summary: GNU version of the tar archiving utility
Build Release: 5.11
Packaging Date: Wed Oct 19 09:11:16 2011
Size: 3.50 MB
Followed by the license.
Search Package Repository Using pkg(1) Command
On a machine with installed Oracle Solaris 11 you can use pkg(1) command to search for packages. (Note, that you can install Oracle Solaris 11 also as a virtual machine on almost any host using VirtualBox.) For example:
-bash-4.1$ pkg search -r gnu tar
INDEX ACTION VALUE PACKAGE
pkg.summary set GNU version of the tar archiving utility pkg:/firstname.lastname@example.org
If you are looking for multiple packages there is an option to list all available packages (both installed and not installed) and then process the output using grep and other tools. For example:
-bash-4.1$ pkg list -a > pkglist.txt
Header of the generated list looks like the following:
-bash-4.1$ head -1 pkglist.txt
NAME (PUBLISHER) VERSION IFO
Now lets look for gnu tar:
-bash-4.1$ grep tar pkglist.txt | grep gnu
archiver/gnu-tar 1.26-0.175.0.0.0.2.537 i--
So, the gnu-tar is available and the "i" in the "I" column shows that gnu-tar is installed.