Which command would you use to list the set of packages included in that software group?

You need to install the solaris-desktop group package. Which command would you use to list the
set of packages included in that software group?

You need to install the solaris-desktop group package. Which command would you use to list the
set of packages included in that software group?

A.
pkg search

B.
pkg info

C.
pkg list

D.
pkginfo

E.
pkg contents

Explanation:
Use the pkg search command to search for packages whose data matches the
specified pattern.
Like the pkg contents command, the pkg search command examines the contents of packages.
While the pkg contents command returns the contents, the pkg search command returns the
names of packages that match the query.
Reference: Oracle Solaris 11 Information Library, Searching for Packages



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Murali

Murali

A is wrong, the Answer may be C or E.
#pkg list -as `pkg contents -r -H -o fmri -t depend -a type=group solaris-desktop`
or
#pkg contents -r -H -o fmri -t depend -a type=group solaris-desktop

suhaimi

suhaimi

A.
Like the pkg contents command, the pkg search command examines the contents of packages. While the pkg contents command returns the contents, the pkg search command returns the names of packages that match the query.

By default, pkg search query terms are matched exactly except for case. Use the -I option to specify a case-sensitive search. You can use ? and * wildcards in query terms.

You can specify more than one query term. By default, multiple terms are joined with AND. You can explicitly join two terms with OR.

Queries can be expressed in the following structured form:

http://docs.oracle.com/cd/E23824_01/html/E21802/gihfn.html

david

david

pkg search -o fmri -H ‘*/solaris-desktop:depend:group:’

John

John

A – pkg search

m.kamal

m.kamal

E,pkg contents

Listing All Installable Packages In a Group Package
====================================================
use the following command to display the set of packages that is included in each group.

$ pkg contents -o fmri -H -rt depend -a type=group solaris-desktop
archiver/gnu-tar
audio/audio-utilities

edi

edi

I would say that it’s A, using a wildcard to display all of the packages that make up the group/system/solaris-desktop group.

root@solaris:~# pkg search */solaris-desktop
INDEX ACTION VALUE PACKAGE
incorporate depend group/system/[email protected] pkg:/consolidation/solaris_re/[email protected]
require depend group/system/solaris-desktop pkg:/[email protected]
pkg.fmri set solaris/group/system/solaris-desktop pkg:/group/system/[email protected]

HARI

HARI

Answer: A

http://docs.oracle.com/cd/E23824_01/html/E21802/gihfn.html

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 solaris-small-server group package is an alternative you can use to install a smaller set of packages on a server. You can use the following search form to display the set of packages that is included in each group.
$ pkg search -o fmri -H ‘*/solaris-desktop:depend:group:’