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

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:

archiver/gnu-tar@1.26,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:

          Name: archiver/gnu-tar
       Summary: GNU version of the tar archiving utility
     Publisher: solaris
       Version: 1.26
 Build Release: 5.11
        Branch: 0.175.0.0.0.2.537
Packaging Date: Wed Oct 19 09:11:16 2011
          Size: 3.50 MB
          FMRI: pkg://solaris/archiver/gnu-tar@1.26,5.11-0.175.0.0.0.2.537:20111019T091116Z

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:/archiver/gnu-tar@1.26-0.175.0.0.0.2.537

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.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blog is about sustaining third party Free and Open Source Software (FOSS) in Oracle Solaris. The views expressed on this blog are my own and do not necessarily reflect the views of Oracle. The Documents contained within this site may include statements about Oracle's product development plans. Many factors can materially affect these plans and the nature and timing of future product releases. Accordingly, this Information is provided to you solely for information only, is not a commitment to deliver any material code, or functionality, and SHOULD NOT BE RELIED UPON IN MAKING PURCHASING DECISIONS. The development, release, and timing of any features or functionality described remains at the sole discretion of Oracle. THIS INFORMATION MAY NOT BE INCORPORATED INTO ANY CONTRACTUAL AGREEMENT WITH ORACLE OR ITS SUBSIDIARIES OR AFFILIATES. ORACLE SPECIFICALLY DISCLAIMS ANY LIABILITY WITH RESPECT TO THIS INFORMATION. Lukas Rovensky, Senior Manager, Software Development

Search

Top Tags
Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today