|Skip Navigation Links|
|Exit Print View|
|Copying and Creating Oracle Solaris 11 Package Repositories Oracle Solaris 11 Information Library|
This section describes how to serve the local repository packages from a directory on your local network.
To enable clients to access the local repository via NFS, set the sharenfs property to create and publish the share.
# zfs create -o mountpoint=/export/repoSolaris11 rpool/repoSolaris11 # zfs set share=name=s11repo,path=/export/repoSolaris11,prot=nfs rpool/repoSolaris11 name=s11repo,path=/export/repoSolaris11,prot=nfs # zfs set sharenfs=on rpool/repoSolaris11
Use one of the following tests to confirm that the share is published:
Search for the repository in the shared file system table.
# grep repo /etc/dfs/sharetab /export/repoSolaris11 s11repo nfs sec=sys,rw
Check whether the repository is accessible from a remote system.
# dfshares solaris RESOURCE SERVER ACCESS TRANSPORT solaris:/export/repoSolaris11 solaris - -
To enable client systems to get packages from your local file repository, you need to reset the origin for the solaris publisher. Execute the following command on each client:
# pkg set-publisher -G '*' -M '*' -g /net/host1/export/repoSolaris11/ solaris
Removes all existing origins for the solaris publisher.
Removes all existing mirrors for the solaris publisher.
Adds the URI of the newly-created local repository as the new origin for the solaris publisher.