Which command would you use to display this information…

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?

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?

A.
pkg list gzip

B.
pkg info -r gzip

C.
pkg search –1 gzip

D.
pkg verify –v gzip

E.
pkg contents gzip

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 shown in here:
Example:
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
Version: 5.2.17
Build Release: 5.11
Branch: 0.175.0.0.0.1.530
Packaging Date: Wed Oct 12 14:01:41 2011
Size: 44.47 MB
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 the image.
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 morepackage patterns in this case.



Leave a Reply 0

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