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. pkginfo
D. pkg contents

Download Printable PDF. VALID exam to help you PASS.

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

  1. 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.

  2. According to Oracle DOC:
    Display the contents of package groups as follows:
    $ pkg contents -ro fmri -t depend -a type=group group-package-name

  3. 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

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.