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.
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.
This question takes the cake for tricks. even if the intention is to pose the question as such to consider the sticky, it still doesn’t make any sense.
D is also correct. Use the pkg unset-publisher command to remove a publisher.
E. is also correct. To change the origin URI for a publisher, add the new URI and remove the old URI. Use the -g option to add a new origin URI. Use the -G option to remove the old origin URI.
# pkg publisher
PUBLISHER TYPE STATUS URI
data.com origin online http://pkg.data.com/release/
E is not correct. You can not remove publisher with set-publisher subcommand.
D is correct. B is correct. A is true but not fully because it can connect via HTTPS to remote repo…
This question is about the pkg command, not about a repository or a service
B and D
BD
D is not correct.
“pkg set-publisher ” can be sued to remove an origin and assign it to another one “-g”. Also can be used to remove publisher “-G”
Cleared Oracle Solaris 11 1Z0-822 exam few days ago! Scored 85% (the passing score is 70% now)!
Totally 80 questions, which were mainly on SMF, IPS, ZFS, Configuring the Network, Securing the Oracle Solairs 11 O/S, Installing Oracle Solaris 11 on multiple hosts and so on.
The 1Z0-822 exam has been revised since 2016, I do recommend you to learn the latest 1Z0-822 dumps here:
http://www.oraclebraindump.com/?s=1Z0-822
(Those are part of PassLeader 1Z0-822 dumps, suggest to get its full version 1Z0-822 dumps with VCE and PDF.)
Good Luck!