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. pkginfo
D. pkg contents
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. pkginfo
D. pkg contents
Answer = D
https://docs.oracle.com/cd/E36784_01/html/E36802/gkogv.html
pkg contents -ro fmri -t depend -a type=group solaris-desktop
Correct answer is : A
pkg search returns the SET name of the package group.
pkg info, without the -r option works only for installed packages (which this one is not at this point, since ” needs to be installed”).
pkg contents displays way more information, but only if used : pkg contents -ro fmri..
So since the last 2 have only a partial command in the answer, I will vote with A.
According to Oracle DOC:
Display the contents of package groups as follows:
$ pkg contents -ro fmri -t depend -a type=group group-package-name
This one is correct. I verified it on a real working solaris.
pkg search would not give much of an information regarding what packages are in the group, so not sure how that answer A can be the right one.
# pkg info -r solaris-desktop
Name: group/system/solaris-desktop
Summary: Oracle Solaris Desktop
Description: Provides an Oracle Solaris desktop environment
Category: Meta Packages/Group Packages
State: Not installed
Publisher: solaris
Version: 11.4
Build Release: 5.11
Branch: 11.4.5.0.1.3.0
Packaging Date: December 20, 2018 08:15:59 AM
Size: 2.52 kB
FMRI: pkg://solaris/group/system/[email protected],5.11-11.4.5.0.1.3.0:20181220T081559Z