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(8) 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 Updating Systems and Adding Software in Oracle Solaris 11.4 for more information about configuring publishers.