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
4. Maintaining Your Local IPS Package Repository
Updating Your Local Repository
Customizing Your Local Repository
Serving Multiple Repositories Using Multiple Depot Server Instances
Depot Server Apache Configuration
Configuring Caching for the Depot Server
Cache Considerations for the Catalog Attributes File
Cache Considerations for Search
Running the Depot Server Behind a Web Proxy
Recommended Generic Apache Configuration Settings
A Simple Prefixed Proxy Configuration
This section describes how to display information about an IPS repository and how to set repository and publisher properties. See the pkgrepo(1) man page.
The following command displays a list of the package publishers known by the local repository. The STATUS column can tell you whether the publisher's package data is currently being processed.
$ pkgrepo info -s /export/repoSolaris11 PUBLISHER PACKAGES STATUS UPDATED solaris 4400 online 2012-07-25T23:40:03.496688Z
The following command displays property information about the local repository.
$ pkgrepo get -s /export/repoSolaris11 SECTION PROPERTY VALUE publisher prefix solaris repository description This\ repository\ serves\ a\ copy\ of\ the\ Oracle\ Solaris\ 11.1\ Package\ Repository. repository name Oracle\ Solaris\ 11.1\ Package\ Repository repository version 4
The value of the publisher prefix specifies that solaris is to be used in the following cases:
When more than one publisher's packages are present and no publisher is specified in the package name in the pkg command
When packages are published to the repository and no publisher is specified
Version 4 repositories are created by default. Version 4 repositories support storage of packages for multiple publishers.
Use the set subcommand to specify new property values.
$ pkgrepo set -s /export/repoSolaris11 \ repository/description="Local copy of the Oracle Solaris 11.1 repository" \ repository/name="Oracle Solaris 11.1 Package Repository" $ pkgrepo get -s /export/repoSolaris11 SECTION PROPERTY VALUE publisher prefix solaris repository description Local\ copy\ of\ the\ Oracle\ Solaris\ 11.1\ repository repository name Oracle\ Solaris\ 11.1\ Package\ Repository repository version 4
The following command displays property information about the solaris publisher in the local repository. The parentheses indicate that the particular value can be a list of values. If you create multiple local repositories, be sure to change the repository name, path, port number, and Apache proxy base during configuration. A Simple Prefixed Proxy Configuration shows setting the pkg/proxy_base.
$ pkgrepo get -p solaris -s /export/repoSolaris11 PUBLISHER SECTION PROPERTY VALUE solaris publisher alias solaris publisher prefix solaris solaris repository collection-type core solaris repository description Local\ copy\ of\ the\ Oracle\ Solaris\ 11.1\ repository solaris repository legal-uris () solaris repository mirrors () solaris repository name Oracle\ Solaris\ 11.1\ Package\ Repository solaris repository origins () solaris repository refresh-seconds solaris repository registration-uri "" solaris repository related-uris ()
The core collection type indicates that the repository contains all of the dependencies declared by packages in the repository.
The legal-uris is a list of locations for documents that provide legal information about the repository.
The origins is a list of locations of repositories that contain a complete copy of this repository's package metadata and content.
The related-uris is a list of locations of repositories that contain packages that users might be interested in.
See the pkgrepo(1) man page for descriptions of other publisher and repository properties.
The following command displays information about the specified section/property in the pkg.oracle.com repository.
$ pkgrepo get -p solaris -s http://pkg.oracle.com/solaris/release \ repository/name repository/description PUBLISHER SECTION PROPERTY VALUE solaris repository description Local\ copy\ of\ the\ Oracle\ Solaris\ 11.1\ repository solaris repository name Oracle\ Solaris\ 11.1\ Package\ Repository
Notice that the repository description and repository name property values are not set for the solaris publisher in the local repository. To provide values for publisher properties, use the set subcommand as shown above, specifying the publisher name as well. The publisher repository/name value is displayed on the browser interface near the top of the page and as the page title. The publisher repository/description value is displayed on the browser interface in the About section just below the name.
$ pkgrepo set -p solaris -s /export/repoSolaris11 \ repository/description="Local copy of the Oracle Solaris 11.1 repository" \ repository/name="Oracle Solaris 11.1 Package Repository" $ pkgrepo get -p solaris -s /export/repoSolaris11 PUBLISHER SECTION PROPERTY VALUE solaris publisher alias solaris publisher prefix solaris solaris repository collection-type core solaris repository description Local\ copy\ of\ the\ Oracle\ Solaris\ 11.1\ repository solaris repository legal-uris () solaris repository mirrors () solaris repository name Oracle\ Solaris\ 11.1\ Package\ Repository solaris repository origins () solaris repository refresh-seconds solaris repository registration-uri "" solaris repository related-uris ()