The default publisher on your system is:
You want to update the Oracle Solaris 11 environment on your system, but you are not able to connect this
system to the Internet to access the default Oracle repository. A repository has been created on your local
network and is named http://server1.example.com.
Which command would you choose to connect your system to the local repository?
A.
pkg publisher to specify the new publisher
B.
pkg set-publisher to set the stickiness on the http://server1.example.com publisher and unset stickiness for
http://pkg.oracle.com/solaris/release
C.
pkg add-publisher to add the new publisher
D.
pkg set-publisher to set the origin for the publisher
Explanation:
Solaris 11 Express makes it pretty easy to set up a local copy of the repository.
A common reason folks need access to a local repository is because their system is not connected to the
Internet.
Tthe pkg set-publisher command can be used to for example add a publisher or to enable or disable a
publisher.
Note: Example Adding a Publisher
Use the -g option to specify the publisher origin URI.
# pkg set-publisher -g http://pkg.example.com/release example.com
Example Specifying the Preferred Publisher
Use the -P option to specify a publisher as the preferred publisher. The specified publisher moves to the top of
the search order. You can specify the -P option when you add a publisher or you can modify an existing
publisher.
# pkg set-publisher -P example.com
Example Enabling or Disabling a Publisher
Use the -d option to disable a publisher. The preferred publisher cannot be disabled. A disabled publisher is not
used in package operations such as list and install. You can modify the properties of a disabled publishers.
Use the -e option to enable a publisher.# pkg set-publisher -d example2.com