This section describes how to serve local repository packages from a directory on your local network.
To enable systems to access the local repository by using NFS, create and publish an NFS share.
$ zfs share -o share.nfs=on rpool/VARSHARE/pkgrepos%ipsrepo
See the zfs_share(1M) man page for more information, such as additional share.nfs properties that you could set.
Use one of the following tests to confirm that the share is published:
$ grep repo /etc/dfs/sharetab /var/share/pkgrepos ipsrepo nfs sec=sys,rw
$ dfshares RESOURCE SERVER ACCESS TRANSPORT solaris:/var/share/pkgrepos solaris - -
Using the repository location and publisher name from the previous steps, run the following command to set the origin for the publisher:
$ pkg set-publisher -g /var/share/pkgrepos/solaris/ solaris
See Configuring Publishers in Adding and Updating Software in Oracle Solaris 11.3 for more information about configuring publishers.