Oracle has released a new version of the Solaris operating system and it is located in a repository on SRVA
and is stored in the rpool/export/sllRepo file system. The repository is accessible to SRVB through the /
remoteRepo NFS mount point.
You need to add a local repository on SRVB in the /export/sllReleaseRepo file system. The repository will be an
exact copy of the repository that is stored on SRVA. Currently, the only publisher on SVRB is:
Which command must you use to copy the contents of the repository from SRVA to the local file system on
SRVB?
A.
pkgrepo create /export/sllReleaseRepo
pkgrecv –s /remoteRepo –d /export/sllReleaseRepo
B.
pkgrecv –s file:///remoteRepo –d file:///export/sllReleaseRepo ‘*’
C.
pkgrecv –s /remoteRepo –d /export/sllReleaseRepo ‘*’
D.
pkgrecv –s /remoteRepo –d file:///export/sllReleaseRepo ‘*’
E.
rsync –aP /remoteRepo /export/sllReleaseRepo
Explanation:
* pkgrepo provides the ability to create and manage pkg package repositories. Package repositories are a
predefined set of directories and files that permit the storage and retrieval of package data by pkg and
publication clients such as pkgsend or pkgrecv.
* Use the pkgrecv command to copy the repository.
Example:
# pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /export/repoSolaris11 ‘*’
Processing packages for publisher solaris …
Creating Plan
Retrieving and evaluating 4288 package(s)…
PROCESS ITEMS GET (MB) SEND (MB)
developer/build/cmake 446/4288 332.1/4589.7 1000.2/14511.8…
Completed 4288/4288 4589.7/4589.7 14511.8/14511.8