Adding and Updating Software in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Listing Packages by Classification or Category

The following example identifies all installed packages that have “Source Code Management” in the value of their info.classification attribute:

$ pkg search -Hlo pkg.shortfmri info.classification:'source code management'
pkg:/developer/versioning/sccs@0.5.11-0.175.2.0.0.8.0
pkg:/developer/versioning/git@1.7.9.2-0.175.2.0.0.34.0
pkg:/developer/versioning/mercurial-27@2.2.1-0.175.2.0.0.34.0

The following example shows the package metadata that is matched in this search:

set name=info.classification value="org.opensolaris.category.2008:Development/Source Code Management"

This information is displayed in the “Category” line in output from the pkg info command.

See Classification Values in Packaging and Delivering Software With the Image Packaging System in Oracle Solaris 11.2 for other classifications that you can search for.

You can also use the pkg list command with a guess at one of the components of the package name, as in the following examples:

$ pkg list '*storage*'
$ pkg list -a '*database*'