Which command would you use to check if the gzip utility is available from the default publisher for installation?

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?

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?

A.
pkg info|grep gzip

B.
pkg list SUNWgzip

C.
pkg contents gzip

D.
pkg search gzip

Explanation:
Searching for Packages
Use the pkg search command to search for packages whose data matches the specified pattern.
Like the pkg contents command, the pkg search command examines the contents of packages.
While the pkg contents command returns the contents, the pkg search command returns the
names of packages that match the query.
pkg search
search [-HIaflpr] [-o attribute …] [-s repo_uri] query
Search for matches to the query, and display the results.
Which tokens are indexed are action-dependent, but may
include content hashes and pathnames.
Note: pkg is the retrieval client for the image packaging system. With
a valid configuration, pkg can be invoked to create locations for
packages to be installed, called ‘images’, and install packages
into those images. Packages are published by publishers, who may
make their packages available at one or more repositories. pkg,
then, retrieves packages from a publisher’s repository and
installs them into an image.



Leave a Reply 5

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


gray

gray

SUNW prefix is NOT relevant to Solaris 11