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.
You can use the pkg list -s command to show the package summary.
$ pkg list -s entire NAME (PUBLISHER) SUMMARY entire Incorporation to lock all system packages to the same build
$ pkg list -v entire FMRI IFO pkg://firstname.lastname@example.org,5.11-0.175.2.0.0.34.0:20140303T182643Z ---
The pkg info command displays more information.
$ pkg info entire Name: entire Summary: entire incorporation including Support Repository Update (Oracle Solaris 184.108.40.206.0). 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: https://support.oracle.com/rs?type=doc&id=2045311.1 Category: Meta Packages/Incorporations State: Installed Publisher: solaris Version: 0.5.11 (Oracle Solaris 220.127.116.11.0) Build Release: 5.11 Branch: 0.175.3.13.0.4.0 Packaging Date: September 29, 2016 05:55:02 PM Size: 5.46 kB FMRI: pkg://email@example.com,5.11-0.175.3.13.0.4.0:20160929T175502Z
As shown in Renamed and Obsolete Packages, you can use the pkg info command to find the new name of a renamed package.
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 https://www.oracle.com/technetwork/licenses/solaris-cluster-express-license-167852.html. 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.