1Z0-821 · Question #96
View the following information for a software package: Which command would you use to display this information for a software package that is not currently installed on your system?
The correct answer is B. pkg info -r gzip. By default, the pkg info command only lists information about installed packages on the system; however, we can use a similar command to look up information about uninstalled packages, as Listing Information About an Uninstalled Package # pkg info -r php-52 Name: web/php-52…
Question
View the following information for a software package:
Which command would you use to display this information for a software package that is not currently installed on your system?
Exhibit
Options
- Apkg list gzip
- Bpkg info -r gzip
- Cpkg search -1 gzip
- Dpkg verify -v gzip
- Epkg contents gzip
How the community answered
(29 responses)- A3% (1)
- B72% (21)
- C7% (2)
- D14% (4)
- E3% (1)
Explanation
By default, the pkg info command only lists information about installed packages on the system; however, we can use a similar command to look up information about uninstalled packages, as Listing Information About an Uninstalled Package # pkg info -r php-52 Name: web/php-52 Summary: PHP Server 5.2 Description: PHP Server 5.2 Category: Development/PHP State: Not Installed Publisher: solaris Build Release: 5.11 Branch: 0.175.0.0.0.1.530 Packaging Date: Wed Oct 12 14:01:41 2011 FMRI: pkg://solaris/web/[email protected], 5.11-0.175.0.0.0.1.530:20111012T140141Z Note: pkg info command displays information about packages in a human-readable form. Multiple FMRI patterns may be specified; with no patterns, display information on all installed packages in With -l, use the data available from locally installed packages. This is the default. With -r, retrieve the data from the repositories of the image's configured publishers. Note that you must specify one or more package patterns in this case.
Topics
Community Discussion
No community discussion yet for this question.
