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 6

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

15 + 20 =


andy

andy

Question asks: ‘list the set of packages included in that software group’

Answer: E

root@sol11:~# pkg search solaris-desktop
INDEX ACTION VALUE PACKAGE
pkg.fmri set solaris/group/system/solaris-desktop pkg:/group/system/[email protected]

root@sol11:~# pkg contents -m solaris-desktop
set name=pkg.fmri value=pkg://solaris/group/system/[email protected],5.11-0.175.2.0.0.42.0:20140623T214936Z
set name=pkg.summary value=”Oracle Solaris Desktop”
set name=pkg.description value=”Provides an Oracle Solaris desktop environment”
set name=info.classification value=”org.opensolaris.category.2008:Meta Packages/Group Packages”
set name=org.opensolaris.consolidation value=solaris_re
set name=variant.arch value=i386 value=sparc
set name=variant.opensolaris.zone value=global value=nonglobal
depend fmri=archiver/gnu-tar type=group
depend fmri=audio/audio-utilities type=group

depend fmri=x11/xfs type=group
depend fmri=x11/xfs/xfs-utilities type=group
depend fmri=x11/xkill type=group
depend fmri=x11/xlock type=group
depend fmri=x11/xmag type=group
depend fmri=x11/xvidtune type=group

Yoboo

Yoboo

[E] Andy is right.

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:’