You need to make sure that all of the software packages on your server are up to date.
Without installing any updates, which two commands would display .my software updates
that are available in the default Oracle repository?
A.
pkg info –r ‘*’
B.
pkg install –nv
C.
pkg search –u
D.
pkg verify –u ‘*’
E.
pkg list -u
F.
pkg update –nv ‘*’
E, F
A,D
a,e
E,F E will list all pkg which installed and available in publisher for update. F will do dry run and list pkg.
a,e
e,f
e,f
A is incorrect because we need info about installed packages on the server
man pkg info
-r
Match packages based on the newest available versions, retriev-
ing information for packages not currently installed
ef
A and D
A: the pgk list command display a list of packages in the current image, including state and other
information.By default, package variants for a different architecture or zone type are excluded.
D: pkginfo displays information about software packages that are installed on the system (with the
first synopsis, with -l) or that reside on a particular device or directory (with the second synopsis,
with -r).
Without options, pkginfo lists the primary category, package instance, and the names of all
completely installed and partially installed packages. It displays one line for each package
selected.
With -r, retrievethe data from the repositories of the image’s configured publishers. Note that you
must specify one or more package patterns in this case.