JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Copying and Creating Oracle Solaris 11.1 Package Repositories     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Image Packaging System Package Repositories

2.  Copying IPS Package Repositories

3.  Providing Access To Your Repository

Retrieving Packages Using a File Interface

Configure an NFS Share

Set the Publisher Origin to the File Repository URI

Retrieving Packages Using an HTTP Interface

Configure the Repository Server Service

Start the Repository Service

Set the Publisher Origin to the HTTP Repository URI

4.  Maintaining Your Local IPS Package Repository

Retrieving Packages Using a File Interface

This section describes how to serve the local repository packages from a directory on your local network.

Configure an NFS Share

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:

Set the Publisher Origin to the File Repository URI

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
-G '*'

Removes all existing origins for the solaris publisher.

-M '*'

Removes all existing mirrors for the solaris publisher.

-g

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.