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

4.  Maintaining Your Local IPS Package Repository

Updating Your Local Repository

Checking and Setting Repository Properties

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

Apache Configuration Examples

A Simple Prefixed Proxy Configuration

Multiple Repositories Under One Domain

Load Balanced Configurations

Complete Load Balanced Example

Checking and Setting Repository Properties

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:

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     ()
collection-type

The core collection type indicates that the repository contains all of the dependencies declared by packages in the repository.

legal-uris

The legal-uris is a list of locations for documents that provide legal information about the repository.

origins

The origins is a list of locations of repositories that contain a complete copy of this repository's package metadata and content.

related-uris

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     ()