Home » Oracle » 1z0-822 » Which two statements regarding the pkg command are correct?
Which two statements regarding the pkg command are correct?
A. It requires HTTP to connect to a remote repository.
B. It uses the set-publisher subcommand to remove an origin.
C. It cannot point to both sticky and nonsticky publishers in the same repository.
D. It uses the unset-publisher subcommand to remove publishers.
E. It uses the set-publisher subcommand to remove publishers.
Correct Answer: AB
Explanation/Reference:
Explanation:
A: Configure pkg.depotd to provide remote access. pkg.depotd provides an HTTP interface to a pkg repo. Here we are going to make the repo server listen on port 10000, and use the repo dir we created as its default.
# svcadm disable pkg/server
# svccfg -s pkg/server setprop pkg/inst_root = /data/myrepo # svccfg -s pkg/server setprop pkg/port = 10000
# svcadm refresh pkg/server
# svcadm enable pkg/server
B: Set-Publisher
With -G (–remove-origin), remove the URI or path from the list of origins for the given publisher. The special value * can be used to remove all origins.
Incorrect:
Not D: unset-publisher publisher …
Remove the configuration associated with the given publisher or publisher
Not E: set-publisher
Update an existing publisher or add a package publisher. If no options affecting search order are specified, new publishers are appended to the search order and are thus searched last.
Download Printable PDF. VALID exam to help you PASS.
|
|
AD are correct
https://docs.oracle.com/cd/E36784_01/html/E36802/gijmo.html
A:
Use the -G option to remove a URI as an origin for the specified publisher.
To change an origin URI for a publisher, add the new URI and remove the old URI.
$ pkg set-publisher -G ‘*’ -g file:///export/IPSpkgrepos/isvrepo/ isvpub
D:
Removing a Publisher
Use the pkg unset-publisher command to remove a publisher.
$ pkg unset-publisher devtool
BD
Well answer D also is correct one ?!?!?