nerdexam
Oracle

1Z0-820 · Question #39

When you issue the "gzip: zommand not found" message is displayed. You need to install the gzip utility on your system. Which command would you use to check if the gzip utility is available from the…

The correct answer is D. pkg search gzip. pkg search gzip queries the default publisher's repository index to find packages matching the keyword "gzip," making it the correct tool to discover whether a package is available for installation on a Solaris/OpenIndiana IPS-based system. Option A (pkg info) retrieves…

Managing Software Packages

Question

When you issue the "gzip: zommand not found" message is displayed. You need to install the gzip utility on your system. Which command would you use to check if the gzip utility is available from the default publisher for installation?

Options

  • Apkg info|grep gzip
  • Bpkg list SUNWgzip
  • Cpkg contents gzip
  • Dpkg search gzip

How the community answered

(27 responses)
  • B
    4% (1)
  • C
    7% (2)
  • D
    89% (24)

Explanation

pkg search gzip queries the default publisher's repository index to find packages matching the keyword "gzip," making it the correct tool to discover whether a package is available for installation on a Solaris/OpenIndiana IPS-based system. Option A (pkg info) retrieves metadata about already-installed packages, so piping it through grep would never reveal something not yet on the system. Option B (pkg list) similarly lists only installed packages, and the legacy SUNWgzip naming convention was retired with IPS. Option C (pkg contents) displays the file contents of a known package-it's useful post-discovery, not for availability checking.

Memory tip: Think of pkg search like a search engine-you search the catalog before you install, just as you search a store's inventory before you buy.

Topics

#Oracle Solaris 11#pkg command#package search#software installation

Community Discussion

No community discussion yet for this question.

Full 1Z0-820 Practice