1Z0-820 practice question 9 of 25

You are setting up a local image packaging System (IPS) package repository on your Oracle Solaris 11 server. The information and specifications that…

Full set: 133 questions

You are setting up a local image packaging System (IPS) package repository on your Oracle Solaris 11 server. The information and specifications that you have are as follows: The Oracle Solaris11 repository ISO image has been downloaded into the /repo directory (a zfs file system). The current publisher is: PUBLISHER TYPE STATUS URI solaris origin online http://pkg.oracle.com/solaris/release/ You will be replacing the current publisher with: PUBLISHER TYPE STATUS URI solaris origin online http://solaris.example.com/ The location of the repository will be /export/IPS. This ZFS file system has already been created. Among the steps you will perform is to set the publisher to the local repository by using the pkg set - publisher command. Which six other steps are required to set up the local IPS package repository?

Answer options
A:

A. Perform an rsync on the ISO image to copy the files from the ISO image to the /export/IPS file system.

Correct answer
B:

B. chmod 700 on/export/IPS

C:

C. Use the svccfg command to set the pkg/inst_root property to export/IPS.

D:

D. Use the svccfg command to set the pkg.inst_root property to /export/IPS.

Correct answer
E:

E. Use the svccfg command to set the pkg/readonly property to the application/pkg/server service to true.

Correct answer
F:

F. Use the svccfg command to set the pkg/readonly property for the application/pkg/server service false.

G:

G. Refresh the application/pkg/server service with the svcadm refresh command.

Correct answer
H:

H. Refresh the package repository with the pkgrep refresh command.

I:

I. Enable the application /pkg/server service.

Correct answer
J:

J. Run the pkhrepo rebuild command to rebuild the repository catalog.

Correct answer
Correct Answer:
A. A. Perform an rsync on the ISO image to copy the files from the ISO image to the /export/IPS file system.; D. D. Use the svccfg command to set the pkg.inst_root property to /export/IPS.; E. E. Use the svccfg command to set the pkg/readonly property to the application/pkg/server service to true.; G. G. Refresh the application/pkg/server service with the svcadm refresh command.; I. I. Enable the application /pkg/server service.; J. J. Run the pkhrepo rebuild command to rebuild the repository catalog.
Explanation

To set up a local IPS package repository from an ISO image in Oracle Solaris 11, you must first populate the repository file system by copying the files using rsync (Option A). Next, configure the application/pkg/server SMF service by setting the pkg/instroot property to the repository path (Option D - noting a slight typo in the option's dot notation, but it provides the correct absolute path /export/IPS). Since the repository is a static copy from an ISO, set the pkg/readonly property to true (Option E). After configuring the properties, refresh (Option G) and enable (Option I) the SMF service. Finally, rebuild the repository catalog using pkgrepo rebuild to ensure the search indexes are up to date (Option J).

Why Incorrect

- B: Changing permissions to 700 restricts access and is not a required or recommended step for an IPS repository server.
- C: The path export/IPS lacks the leading slash, making it a relative path which will fail to resolve correctly.
- F: Setting pkg/readonly to false is incorrect for a static repository copied directly from a release ISO, as it is not meant to receive direct package publications.
- H: pkgrep refresh is not a valid command

References

- Oracle, Copying and Creating Package Repositories in Oracle Solaris 11.2, “How to Copy a Repository From a File”: documents mounting/copying repository media with rsync and running pkgrepo rebuild -s.

- Oracle, Copying and Creating Package Repositories in Oracle Solaris 11.2, “Serving a Local Repository Using the Package Depot Server”: documents svccfg -s application/pkg/server setprop pkg/instroot=..., pkg/readonly=true, svcadm refresh, and svcadm enable.

- Oracle Solaris 11.4 Reference Manual, pkgrepo(1), “rebuild” subcommand: rebuilds repository catalog/search data.

- Oracle Solaris 11.4 Reference Manual, pkg.depotd(8), SMF properties pkg/instroot and pkg/readonly.

Scroll to Top