Go to main content

Adding and Updating Software in Oracle® Solaris 11.3

Exit Print View

Updated: September 2018

Displaying Package Descriptions or Licenses

The pkg info command displays information about a package, including the name, description, installed state, version, packaging date, package size, and the full FMRI. With no options or operands, the pkg info command displays information about all packages that are installed in the current image. To narrow your results, provide one or more package names. You can use wildcards in the package names. Quote the wildcards so that the argument is passed directly to pkg and the shell does not expand it.

Both the info and list subcommands display the package name, publisher, and version information. The pkg list command shows whether an update exists for the package, whether an update can be installed in this image, and whether a package is obsolete, renamed, or frozen. The pkg list command can also show the package summary and the full FMRI. The pkg info command displays the package summary, description, category, and size, and can separately display the license information.

Displaying Package Description, Size, Full FMRI

You can use the pkg list -s command to show the package summary.

$ pkg list -s entire
entire              Incorporation to lock all system packages to the same build

The pkg list -v command lists the full package FMRI.

$ pkg list -v entire
FMRI                                                                IFO
pkg://solaris/entire@0.5.11,5.11-  ---

The pkg info command displays more information.

$ pkg info entire
             Name: entire
          Summary: entire incorporation including Support Repository Update (Oracle Solaris
      Description: This package constrains system package versions to the same
                   build.  WARNING: Proper system update and correct package
                   selection depend on the presence of this incorporation.
                   Removing this package will result in an unsupported system.
                   For more information see:
         Category: Meta Packages/Incorporations
            State: Installed
        Publisher: solaris
          Version: 0.5.11 (Oracle Solaris
    Build Release: 5.11
   Packaging Date: September 29, 2016 05:55:02 PM
             Size: 5.46 kB
             FMRI: pkg://solaris/entire@0.5.11,5.11-

As shown in Renamed and Obsolete Packages, you can use the pkg info command to find the new name of a renamed package.

Displaying Package Licenses

Use the --license option to display the license texts for the matching packages. Use the -r option to display the license text for a package that you plan to install.

$ pkg info -r --license osnet-incorporation
You acknowledge that your use of this Oracle Solaris software product
is subject to, and may not exceed the use for which you are authorized,
(i) the license or cloud services terms that you accepted when you
obtained the right to use Oracle Solaris software; or (ii) the license
terms that you agreed to when you placed your Oracle Solaris software
order with Oracle; or (iii) the Oracle Solaris software license terms
included with the hardware that you acquired from Oracle; or, if (i),
(ii) or (iii) are not applicable, then, (iv) the OTN License Agreement
for Oracle Solaris (which you acknowledge you have read and agree to)
available at 
Note: Software downloaded for trial use or downloaded as replacement
media may not be used to update any unsupported software.

License information can be quite lengthy. Other information that the pkg info command shows when the --license option is not specified is not displayed. See Displaying License Requirements to list packages that require you to accept their license.