News, tips, partners, and perspectives for the Oracle Solaris operating system

How to Find If A FOSS Package Is Delivered with Oracle Solaris 11

Lukas Rovensky
Senior Manager, Software Development

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-", 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:


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:

          Name: archiver/gnu-tar
       Summary: GNU version of the tar archiving utility
     Publisher: solaris
       Version: 1.26
 Build Release: 5.11

Packaging Date: Wed Oct 19 09:11:16 2011
          Size: 3.50 MB
          FMRI: pkg://solaris/archiver/gnu-tar@1.26,5.11-

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


pkg.summary set GNU version of the tar archiving utility pkg:/archiver/gnu-tar@1.26-

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


Now lets look for gnu tar:

-bash-4.1$ grep tar pkglist.txt | grep gnu

archiver/gnu-tar   1.26-   i--

So, the gnu-tar is available and the "i" in the "I" column shows that gnu-tar is installed.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.