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


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 an HTTP Interface

This section describes how to serve the local repository packages using the package depot server.

See Serving Multiple Repositories Using Multiple Depot Server Instances for information about serving multiple repositories using multiple pkg.depotd daemons running on different ports. See Multiple Repositories Under One Domain for information about running multiple repositories under one domain name with different prefixes.

Configure the Repository Server Service

To enable clients to access the local repository via HTTP, enable the application/pkg/server Service Management Facility (SMF) service.

$ svccfg -s application/pkg/server setprop pkg/inst_root=/export/repoSolaris11
$ svccfg -s application/pkg/server setprop pkg/readonly=true

Check your work:

$ svcprop -p pkg/inst_root application/pkg/server

Use pkg.depotd to serve the repository to clients. By default, pkg.depotd listens for connections on port 80. You can change the port by resetting the pkg/port property.

$ svccfg -s application/pkg/server setprop pkg/port=port_number

For a complete list of application/pkg/server properties, see the pkg.depotd(1M) man page.

To set multiple service properties, use the following command to edit all the properties at once:

$ svccfg -s pkg/server editprop

Remember to remove the comment marker (#) from the beginning of any lines you change.

Start the Repository Service

Restart the pkg.depotd repository service.

$ svcadm refresh application/pkg/server
$ svcadm enable application/pkg/server

To check whether the repository server is working, open a browser window on the localhost location. By default, pkg.depotd listens for connections on port 80. If you have changed the port, open a browser window on the localhost:port_number location.

Set the Publisher Origin to the HTTP 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
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 http://localhost:port_number/ solaris
-G '*'

Removes all existing origins for the solaris publisher.

-M '*'

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.