JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Copying and Creating Oracle Solaris 11 Package Repositories     Oracle Solaris 11 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 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
/export/repoSolaris11

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 open a vi session where you can 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 pkg.depotd repository, you need to reset the origin for the solaris publisher. Execute the following command on each client:

# 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.

-g

Adds the URI of the newly-created local repository as the new origin for the solaris publisher.