|Skip Navigation Links|
|Exit Print View|
|Copying and Creating Oracle Solaris 11 Package Repositories Oracle Solaris 11 Information Library|
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.
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.
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.
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
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.