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?

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 more
package patterns in this case.
Reference: man pkg



Leave a Reply 3

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

20 + ten =


rocky

rocky

yep, clearly [B]

root@sol11-ai:~# pkg info -r xchat
Name: desktop/irc/xchat
Summary: XChat IRC Client
Category: Applications/Internet
State: Not installed
Publisher: solaris
Version: 2.8.8
Build Release: 5.11
Branch: 0.175.2.0.0.38.0
Packaging Date: April 28, 2014 01:04:39 PM
Size: 1.71 MB
FMRI: pkg://solaris/desktop/irc/[email protected],5.11-0.175.2.0.0.38.0:20140428T130439Z
root@sol11-ai:~# pkg info xchat
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try specifying -r to query remotely:

xchat
root@sol11-ai:~#

Qiqe

Qiqe

B…
root@solaris # pkg info -r gzip
Name: compress/gzip
Summary: GNU Zip (gzip)
Description: The GNU Zip (gzip) compression utility
Category: Applications/System Utilities
State: Installed
Publisher: solaris
Version: 1.5
Build Release: 5.11
Branch: 0.175.2.4.0.3.0
Packaging Date: October 22, 2014 12:24:31 AM
Size: 437.97 kB
FMRI: pkg://solaris/compress/[email protected],5.11-0.175.2.4.0.3.0:20141022T002431Z