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.
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, size, whether the package is frozen, the last install or update time, and the source location for open source software. The pkg info command can separately display 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://email@example.com:20180702T173343Z i--
The pkg info command displays more information, including the time the package was packaged and the size of the package. In this example, the “State” of the pkg info output shows that this package is frozen:
$ pkg info entire Name: entire Summary: Incorporation to lock all system packages to the same build 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. Category: Meta Packages/Incorporations State: Installed (Frozen) Publisher: solaris Version: 11.4 (Oracle Solaris 126.96.36.199.1.10.0) Branch: 188.8.131.52.1.10.0 Packaging Date: Mon Jul 02 17:33:43 2018 Size: 2.53 kB FMRI: pkg://firstname.lastname@example.org:20180702T173343Z
If the information is available, the pkg info command displays the last time the package was installed or updated. If the last install or update time is not available from pkg info, the package might have been installed when this BE was initially created. In that case, use the BE creation date shown by the beadm list command. You can also use the pkg history command as described in Viewing Operation History to find all package install, update, and uninstall times.
The following output shows the last install time for the package:
$ pkg info mercurial-27 Name: developer/versioning/mercurial-27 Summary: The Mercurial Source Control Management System Description: A fast, lightweight source control management system designed for efficient handling of very large distributed projects. Category: Development/Source Code Management State: Installed Publisher: solaris Version: 4.1.3 Branch: 184.108.40.206.1.10.0 Packaging Date: Mon Jul 02 16:32:13 2018 Last Install Time: Mon Aug 06 15:22:47 2018 Size: 9.90 MB FMRI: pkg://email@example.com:20180702T163213Z Project URL: http://mercurial-scm.org/ Source URL: https://www.mercurial-scm.org/release/mercurial-4.1.3.tar.gz
As shown in Renamed and Obsolete Packages, you can use the pkg info command to find the new name of a renamed package. The “State” line of the pkg info output also shows whether the package is frozen.
For FOSS packages, the Project URL and Source URL are displayed:
$ pkg info openssl Name: library/security/openssl Summary: OpenSSL - a Toolkit for Secure Sockets Layer (SSL v2/v3) and Transport Layer (TLS v1) protocols and general purpose cryptographic library Description: OpenSSL is a full-featured toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. Category: System/Security State: Installed Publisher: solaris Version: 220.127.116.11 (1.0.2o) Branch: 18.104.22.168.1.10.0 Packaging Date: Mon Jul 02 17:04:44 2018 Size: 16.05 MB FMRI: pkg://firstname.lastname@example.org:20180702T170444Z Project URL: https://www.openssl.org/ Source URL: https://www.openssl.org/source/openssl-1.0.2o.tar.gz
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 is not installed.
$ pkg info -r --license install-image/solaris-auto-install Copyright (c) 1983, 2018, Oracle and/or its affiliates. All rights reserved. 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 http://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.