1Z0-820 practice question 1 of 25

You need to update an OS image on a client. The pkg publishers command displays the wrong publisher with the wrong update: PUBLISHER TYPE STATUS URI…

Full set: 133 questions
You need to update an OS image on a client. The pkg publishers command displays the wrong publisher with the wrong update: PUBLISHER TYPE STATUS URI Solaris origin online http://pkg.oracle.com/solaris/release The update is available on the updated publisher: PUBLISHER TYPE STATUS URI Solaris origin online http://sysA.example.com Select the option that describes the procedure used to update the OS image on the system from the updated publisher.
Answer options
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.com Refresh the application/pkg/server service. Issue the pkgrepo refresh 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. Correct answer
D: Add the new publisher http://sysA.example.com Solaris Use the pkg set-publisher command to set the publisher search order and place http://sysA.example.com of http://pkg.oracle.com/solaris/release Issue the pkg publisher command to view the publishers. Set the new publisher to sticky. Issue the pkg update command to update the OS image.
Correct Answer:
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.
Explanation

To update the OS image from a new publisher repository, you must change the origin URI of the existing publisher using the pkg set-publisher command. By specifying the new URL for the 'solaris' publisher (e.g., using the -G and -g flags to remove the old URI and add the new one), the system will correctly pull packages from the updated repository when the pkg update command is subsequently executed.

Why Incorrect

A. Copying the repository locally and using svccfg is unnecessary and overly complex for simply changing a publisher's origin URI.
B. The svccfg command is used for SMF service configuration, not for directly managing IPS publisher URIs on a client system.
D. Adding a new publisher and setting search orders is not required or best practice when you can simply update the URI of the existing 'solaris' publisher.

References

1. Oracle Corporation. (2012). Adding and Updating Software in Oracle Solaris 11.1. Part No: E28042. Chapter 3: "Configuring Publishers".

2. Oracle Corporation. (2012). Oracle Solaris 11.1 Information Library. Part No: E28030. Section: "pkg(1) Man Page".

Scroll to Top