Skip Navigation Links | |
Exit Print View | |
Copying and Creating Oracle Solaris 11.1 Package Repositories Oracle Solaris 11.1 Information Library |
1. Image Packaging System Package Repositories
2. Copying IPS Package Repositories
3. Providing Access To Your Repository
Retrieving Packages Using an HTTP Interface
Configure the Repository Server Service
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.
$ pfexec zfs create -o mountpoint=/export/repoSolaris11 rpool/repoSolaris11 $ pfexec zfs set share=name=s11repo,path=/export/repoSolaris11,prot=nfs rpool/repoSolaris11 name=s11repo,path=/export/repoSolaris11,prot=nfs $ pfexec 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, set the origin for the publisher. Use the following command to check the name of the publisher of the packages in your new repository:
$ pkgrepo info -s /export/repoSolaris11 PUBLISHER PACKAGES STATUS UPDATED solaris 4400 online 2012-07-25T23:40:03.496688Z
Execute the following command on each client to reset the origin for the solaris publisher:
$ pfexec 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.
See Configuring Publishers in Adding and Updating Oracle Solaris 11.1 Software Packages for more information about configuring publishers.