You need to update an OS image on a client. The pkg publishers command displays the wrong publisher with
the wrong update:
PUBLISHERTYPESTATUSURI
Solaris origin onlinehttp://pkg.oracle.com/solaris/release
The update is available on the updated publisher:
PUBLISHERTYPESTATUSURI
Solaris originonlinehttp://sysA.example.com
Select the option that describes the procedure used to update the OS image on the system from the updated
publisher.
A.
Copy the repository from the ISO image onto the local client.Configure the repository on the client by using
the svccfg – s command so that the Solaris publisher is connected to the new repository.Refresh the
application/pkg/server service.Issue the pkgrepo refresh command to refresh the repository catalog
B.
Configure the publisher on the client using the svcfg – s command so that the Solaris publisher is connected
to the repository at http://sysA.example.comRefresh the application/pkg/server service.Issue the pkgreporefresh command to repository catalog
C.
Use the pkg set-publisher command to change the URL of the publisher Solaris to http://
sysA.example.com.Issue the pkg update command to update the OS image.
D.
Add the new publisher http://sysA.example.com SolarisUse the pkg set-publisher command to set the
publisher search order and place http://sysA.example.com of http://pkg.oracle.com/solaris/releaseIssue the
pkg publisher command to view the publishers.Set the new publisher to sticky.Issue the pkg update
command to update the OS image.
Explanation:
You can use the pkg set-publisher command to change a publisher URI.
Changing a Publisher Origin URI
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 set-publisher -g http://pkg.example.com/support \\
-G http://pkg.example.com/release example.com
Note: You can use either the install or update subcommand to update a package.
The install subcommand installs the package if the package is not already installed in the image. If you want to
be sure to update only packages that are already installed, and not install any new packages, then use the
update subcommand.