To display information about software packages, refer to the following examples. No special privileges are required to display information about packages.
List the packages that are currently installed on your system:
$ pkg list | more
Determine whether a specific package is installed in the current image and whether an update is available.
$ pkg list amp pkg list: no packages matching 'amp' installed
Display more information about a package that is not installed. Use the –r option to query the package repository, as follows:
$ pkg info -r amp Name: amp Summary: State: Not installed (Renamed) Renamed to: firstname.lastname@example.org consolidation/sfw/sfw-incorporation Publisher: solaris Version: 0.5.11 Branch: 0.133 Packaging Date: Wed Oct 27 18:31:05 2010 Size: 0.00 B FMRI: pkg://email@example.com:20101027T183105Z Name: group/feature/amp Summary: AMP (Apache, MySQL, PHP) Deployment Kit for Oracle Solaris Description: Provides a set of components for deployment of an AMP (Apache, MySQL,PHP) stack on Oracle Solaris Category: Meta Packages/Group Packages(org.opensolaris.category.2008) Web Services/Application and Web Servers (org.opensolaris.category.2008) State: Not installed Publisher: solaris Version: 0.5.11 Build Release: 5.11 Branch: 0.175.3.0.0.18.0 Packaging Date: Sun Mar 15 19:45:04 2015 Size: 5.46 kB FMRI: pkg://firstname.lastname@example.org,5.11-0.175.3.0.0.18.0:20150315T194504Z Name: web/amp Summary: State: Not installed (Renamed) Renamed to: email@example.com consolidation/ips/ips-incorporation Publisher: solaris Version: 0.5.11 Branch: 0.174.0.0.0.0.0 Packaging Date: Wed Sep 21 19:15:02 2011 Size: 5.45 kB FMRI: pkg://firstname.lastname@example.org:20110921T191502Z
If you know the name of the tool that you want to install, but not the name of the package, use the search subcommand in one of the following ways:
$ pkg search /usr/bin/emacs INDEX ACTION VALUE PACKAGE path file usr/bin/emacs pkg:/email@example.com
$ pkg search file::emacs INDEX ACTION VALUE PACKAGE basename file usr/bin/emacs pkg:/firstname.lastname@example.org