Adding and Updating Software in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Listing All Packages in a Group Package

The Oracle Solaris 11 GUI installer installs the solaris-desktop group package. The text installer and the default AI manifest in an Automated Installer installation install the solaris-large-server group package. The default installation manifest for non-global zones installs the solaris-small-server group package. The solaris-minimal-server group package installs the minimal supported set of packages required to run Oracle Solaris. You can use the following search form to display the set of packages that is included in each group:

$ pkg search -Ho fmri '*/solaris-minimal-server:depend:group:*'
network/ping
service/network/ssh
shell/tcsh
shell/zsh
system/network

In this example, -o pkg.name would return only the name of the package specified in the package field of the query:

group/system/solaris-minimal-server

The -o fmri option returns the value of the fmri attribute of the packages that are specified in the solaris-minimal-server package as group type dependencies.

The pkg search command is returning the value of an attribute of an action in a specified package. That attribute value happens to be a package name in this example. The number of results from this command can be larger than the number of the results from the similar pkg contents command shown in Listing All Installable Packages in a Group Package because these search results include the names of all packages that are named in depend actions of type group in the specified package, not just installable packages. For example, package variants and facets might be included that are not installable in this image. To see this difference, try both examples with the solaris-large-server package.