'\" te .\" Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. .TH pkgrepo 1 "26 May 2015" "SunOS 5.11" "User Commands" .SH NAME pkgrepo \- Image Packaging System repository management utility .SH SYNOPSIS .LP .nf /usr/bin/pkgrepo create [--version \fIver\fR] \fIuri_or_path\fR .fi .LP .nf /usr/bin/pkgrepo add-publisher -s \fIrepo_uri_or_path\fR \fIpublisher\fR \&.\&.\&. .fi .LP .nf /usr/bin/pkgrepo remove-publisher [-n] [--synchronous] -s \fIrepo_uri_or_path\fR \fIpublisher\fR \&.\&.\&. .fi .LP .nf /usr/bin/pkgrepo get [-F \fIformat\fR] [-H] [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR [--key \fIssl_key\fR --cert \fIssl_cert\fR]\&.\&.\&. [\fIsection/property\fR \&.\&.\&.] .fi .LP .nf /usr/bin/pkgrepo info [-F \fIformat\fR] [-H] [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR [--key \fIssl_key\fR --cert \fIssl_cert\fR]\&.\&.\&. .fi .LP .nf /usr/bin/pkgrepo list [-F \fIformat\fR] [-H] [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR [--key \fIssl_key\fR --cert \fIssl_cert\fR]\&.\&.\&. [\fIpkg_fmri_pattern\fR \&.\&.\&.] .fi .LP .nf /usr/bin/pkgrepo contents [-m] [-t \fIaction_name\fR[,\fIaction_name\fR]\&.\&.\&.]\&.\&.\&. -s \fIrepo_uri_or_path\fR [--key \fIssl_key\fR --cert \fIssl_cert\fR]\&.\&.\&. [\fIpkg_fmri_pattern\fR\&.\&.\&.] .fi .LP .nf /usr/bin/pkgrepo rebuild [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR [--key \fIssl_key\fR --cert \fIssl_cert\fR]\&.\&.\&. [--no-catalog] [--no-index] .fi .LP .nf /usr/bin/pkgrepo refresh [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR [--key \fIssl_key\fR --cert \fIssl_cert\fR]\&.\&.\&. [--no-catalog] [--no-index] .fi .LP .nf /usr/bin/pkgrepo remove [-n] [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR \fIpkg_fmri_pattern\fR \&.\&.\&. .fi .LP .nf /usr/bin/pkgrepo set [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR \fIsection/property\fR=[\fIvalue\fR] \&.\&.\&. .fi .LP .nf /usr/bin/pkgrepo set [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR \fIsection/property\fR=([\fIvalue\fR]) \&.\&.\&. .fi .LP .nf /usr/bin/pkgrepo verify [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR .fi .LP .nf /usr/bin/pkgrepo fix [-v] [-p \fIpublisher\fR]\&.\&.\&. -s \fIrepo_uri_or_path\fR .fi .LP .nf /usr/bin/pkgrepo help .fi .LP .nf /usr/bin/pkgrepo version .fi .SH DESCRIPTION .sp .LP \fBpkgrepo\fR provides the ability to create and manage \fBpkg\fR(5) package repositories\&. Package repositories are a predefined set of directories and files that permit the storage and retrieval of package data by \fBpkg\fR and publication clients such as \fBpkgsend\fR or \fBpkgrecv\fR\&. In addition, when network-based access to a package repository is needed, \fBpkg\&.depotd\fR can provide clients access to the repository to store and/or retrieve package data\&. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-?\fR\fR .ad .br .na \fB\fB--help\fR\fR .ad .br .sp .6 .RS 4n Display a usage message\&. .RE .SH SUB-COMMANDS .sp .LP The following subcommands are supported: .sp .ne 2 .mk .na \fB\fBpkgrepo create\fR [\fB--version\fR \fIver\fR] \fIuri_or_path\fR\fR .ad .br .sp .6 .RS 4n Create a \fBpkg\fR(5) repository at the specified location\&. .sp This subcommand can be used only with file system based repositories\&. .sp .ne 2 .mk .na \fB\fB--version\fR\fR .ad .br .sp .6 .RS 4n Create a repository in a format compatible with the specified version\&. By default, version 4 repositories are created\&. Supported versions are: .sp .ne 2 .mk .na \fB3\fR .ad .RS 5n .rt Supports storage of packages for a single publisher, catalog version 1, and search version 1\&. .RE .sp .ne 2 .mk .na \fB4\fR .ad .RS 5n .rt Supports storage of packages for multiple publishers, catalog version 1, and search version 1\&. .RE .RE .RE .sp .ne 2 .mk .na \fB\fBpkgrepo add-publisher\fR \fB-s\fR \fIrepo_uri_or_path\fR \fIpublisher\fR \&.\&.\&.\fR .ad .br .sp .6 .RS 4n Add the specified publishers to the repository\&. The new publishers have no packages or content\&. .sp This subcommand can be used only with version 4 file system based repositories\&. .sp .ne 2 .mk .na \fB\fB-s\fR \fIrepo_uri_or_path\fR\fR .ad .br .sp .6 .RS 4n Operate on the repository located at the given URI or file system path\&. .RE .RE .sp .ne 2 .mk .na \fB\fBpkgrepo remove-publisher\fR [\fB-n\fR] [\fB--synchronous\fR] \fB-s\fR \fIrepo_uri_or_path\fR \fIpublisher\fR \&.\&.\&.\fR .ad .br .sp .6 .RS 4n Remove the specified publishers from the repository\&. Remove all packages and all other data for the specified publishers\&. .sp If the default publisher is removed, and only one publisher remains in the repository, that remaining publisher becomes the default\&. The \fBpublisher/prefix\fR property of the repository is set to that remaining publisher\&. .sp If the default publisher is removed, and multiple publishers remain in the repository, or if the last publisher is removed from the repository, the \fBpublisher/prefix\fR property is unset\&. .sp This subcommand can be used only with version 4 file system based repositories\&. .sp .ne 2 .mk .na \fB\fB-n\fR\fR .ad .br .sp .6 .RS 4n Perform a trial run of the operation with no publisher changes made\&. The number of packages to be removed for each publisher is displayed before exiting\&. .RE .sp .ne 2 .mk .na \fB\fB-s\fR \fIrepo_uri_or_path\fR\fR .ad .br .sp .6 .RS 4n Operate on the repository located at the given URI or file system path\&. .RE .sp .ne 2 .mk .na \fB\fB--synchronous\fR\fR .ad .br .sp .6 .RS 4n Wait for the operation to complete before returning\&. If this option is not specified, the command returns immediately while the publisher is removed asynchronously in the background\&. .RE .RE .sp .ne 2 .mk .na \fB\fBpkgrepo get\fR [\fB-F\fR \fIformat\fR] [\fB-H\fR] [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR [\fB--key\fR \fIssl_key\fR \fB--cert\fR \fIssl_cert\fR]\&.\&.\&. [\fIsection/property\fR \&.\&.\&.]\fR .ad .br .sp .6 .RS 4n Display the property information for the repository or its publishers\&. .sp By default, each property and its value are printed on separate lines\&. Empty ASCII string values are represented by a pair of double quotation marks (\fB""\fR)\&. The following Bourne shell metacharacters, and newline, space, and tab, in ASCII string values must be escaped by backslash characters (\fB\e\fR): .sp .sp .in +2 .nf ; & ( ) | ^ < > \e " \' ` .fi .in -2 .sp See the "Examples" section for examples displaying publisher and repository properties\&. .sp For a list of properties and the purpose and value of each property, see the \fBset\fR subcommand below\&. .sp .ne 2 .mk .na \fB\fB-F\fR \fIformat\fR\fR .ad .br .sp .6 .RS 4n Specify an alternative output format\&. The value of \fIformat\fR can be \fBtsv\fR (Tab Separated Values), \fBjson\fR (JavaScript Object Notation as a single line), or \fBjson-formatted\fR (JavaScript Object Notation, formatted for readability)\&. .RE .sp .ne 2 .mk .na \fB\fB-H\fR\fR .ad .br .sp .6 .RS 4n Omit the headers from the listing\&. .RE .sp .ne 2 .mk .na \fB\fB-p\fR \fIpublisher\fR\fR .ad .br .sp .6 .RS 4n Display the property information for the given publisher\&. The special value \fBall\fR displays the properties for all publishers\&. This option can be specified multiple times\&. .RE .sp .ne 2 .mk .na \fB\fB-s\fR \fIrepo_uri_or_path\fR\fR .ad .br .sp .6 .RS 4n Operate on the repository located at the given URI or file system path\&. .RE .sp .ne 2 .mk .na \fB\fB--key\fR \fIssl_key\fR \fB--cert\fR \fIssl_cert\fR\fR .ad .br .sp .6 .RS 4n Use the \fB--key\fR option to specify a client SSL key file to use for package retrieval from an HTTPS repository\&. Use the \fB--cert\fR option to specify a client SSL certificate file to use for package retrieval from an HTTPS repository\&. This option pair can be specified multiple times\&. .RE .sp .ne 2 .mk .na \fB\fIsection/property\fR\fR .ad .br .sp .6 .RS 4n Display values for only the specified properties, such as \fBpublisher/prefix\fR or \fBrepository/version\fR\&. See the \fBset\fR subcommand for a complete list of properties\&. .RE .RE .sp .ne 2 .mk .na \fB\fBpkgrepo info\fR [\fB-F\fR \fIformat\fR] [\fB-H\fR] [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR [\fB--key\fR \fIssl_key\fR \fB--cert\fR \fIssl_cert\fR]\&.\&.\&.\fR .ad .br .sp .6 .RS 4n Display a listing of the package publishers known by the repository\&. The listing includes the number of packages for each publisher, when the publisher\'s package data was last updated, and the status of the publisher\'s package data (such as whether it is currently being processed)\&. .sp .sp .ne 2 .mk .na \fB\fB-p\fR \fIpublisher\fR\fR .ad .br .sp .6 .RS 4n Only display the data for the given publisher\&. If not provided, the data for all publishers is displayed\&. This option can be specified multiple times\&. .RE For descriptions of all other options, see the \fBpkgrepo get\fR command above\&. .RE .sp .ne 2 .mk .na \fB\fBpkgrepo list\fR [\fB-F\fR \fIformat\fR] [\fB-H\fR] [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR [\fB--key\fR \fIssl_key\fR \fB--cert\fR \fIssl_cert\fR]\&.\&.\&. [\fIpkg_fmri_pattern\fR \&.\&.\&.]\fR .ad .br .sp .6 .RS 4n List the packages in the \fIrepo_uri_or_path\fR repository that match the specified \fIpkg_fmri_pattern\fR patterns\&. If no patterns are specified, all packages in the repository are listed\&. The \fIpkg_fmri_pattern\fR pattern can include the \fB?\fR and \fB*\fR characters as \fBglob\fR(3C)-style wildcards to match one or more packages\&. .sp In the default output, the first column contains the name of the publisher of the package\&. The second column contains the name of the package\&. The third column is a flag that shows the status of the package\&. A value of \fBo\fR in the status column indicates the package is obsolete\&. A value of \fBr\fR in the status column indicates the package has been renamed, which is a form of obsoletion\&. The fourth column contains the release and branch versions of the package\&. See \fBpkg\fR(5) for information about release and branch versions\&. .sp .sp .ne 2 .mk .na \fB\fB-p\fR \fIpublisher\fR\fR .ad .br .sp .6 .RS 4n Only display the packages for the given publisher\&. If not provided, the packages for all publishers are listed\&. This option can be specified multiple times\&. .RE For descriptions of all other options, see the \fBpkgrepo get\fR command above\&. .RE .sp .ne 2 .mk .na \fB\fBpkgrepo contents\fR [\fB-m\fR [\fB-t\fR \fIaction_name\fR[,\fIaction_name\fR]\&.\&.\&.]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR [\fB--key\fR \fIssl_key\fR \fB--cert\fR \fIssl_cert\fR]\&.\&.\&. [\fIpkg_fmri_pattern\fR\&.\&.\&.]\fR .ad .br .sp .6 .RS 4n List all packages in the \fIrepo_uri_or_path\fR repository\&. If \fIpkg_fmri_pattern\fR is specified, display the contents (action attributes) of all matching packages in the repository\&. .sp .sp .ne 2 .mk .na \fB\fB-m\fR\fR .ad .br .sp .6 .RS 4n Display all attributes of actions in the specified packages\&. .RE .sp .ne 2 .mk .na \fB\fB-t\fR \fIaction_name\fR\fR .ad .br .sp .6 .RS 4n Display only the specified actions in the specified packages\&. The \fB-t\fR option can be specified multiple times, or multiple actions can be specified as the argument to one \fB-t\fR option by separating the action names with commas\&. The value of \fIaction_name\fR is one of the actions listed in "Actions" in the \fBpkg\fR(5) man page, such as \fBfile\fR, \fBdir\fR, \fBdriver\fR, \fBdepend\fR, or \fBset\fR\&. .RE For descriptions of all other options, see the \fBpkgrepo get\fR command above\&. .RE .sp .ne 2 .mk .na \fB\fBpkgrepo rebuild\fR [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR [\fB--key\fR \fIssl_key\fR \fB--cert\fR \fIssl_cert\fR]\&.\&.\&. [\fB--no-catalog\fR] [\fB--no-index\fR]\fR .ad .br .sp .6 .RS 4n Discard all catalog, search, and other cached information found in the repository, and then recreate it based on the current contents of the repository\&. .sp .sp .ne 2 .mk .na \fB\fB-p\fR \fIpublisher\fR\fR .ad .br .sp .6 .RS 4n Perform the operation only for the given publisher\&. If not provided, or if the special value \fBall\fR is specified, the operation is performed for all publishers\&. This option can be specified multiple times\&. .RE .sp .ne 2 .mk .na \fB\fB--no-catalog\fR\fR .ad .br .sp .6 .RS 4n Do not rebuild package data\&. .RE .sp .ne 2 .mk .na \fB\fB--no-index\fR\fR .ad .br .sp .6 .RS 4n Do not rebuild search indexes\&. .RE For descriptions of all other options, see the \fBpkgrepo get\fR command above\&. .RE .sp .ne 2 .mk .na \fB\fBpkgrepo refresh\fR [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR [\fB--key\fR \fIssl_key\fR \fB--cert\fR \fIssl_cert\fR]\&.\&.\&. [\fB--no-catalog\fR] [\fB--no-index\fR]\fR .ad .br .sp .6 .RS 4n Catalog any new packages found in the repository and update all search indexes\&. This is intended for use with deferred publication (\fB--no-catalog\fR or \fB--no-index\fR options of \fBpkgsend\fR)\&. .sp .sp .ne 2 .mk .na \fB\fB-p\fR \fIpublisher\fR\fR .ad .br .sp .6 .RS 4n Perform the operation only for the given publisher\&. If not provided, or if the special value \fBall\fR is specified, the operation is performed for all publishers\&. This option can be specified multiple times\&. .RE .sp .ne 2 .mk .na \fB\fB--no-catalog\fR\fR .ad .br .sp .6 .RS 4n Do not add any new packages\&. .RE .sp .ne 2 .mk .na \fB\fB--no-index\fR\fR .ad .br .sp .6 .RS 4n Do not update search indexes\&. .RE For descriptions of all other options, see the \fBpkgrepo get\fR command above\&. .RE .sp .ne 2 .mk .na \fB\fBpkgrepo remove\fR [\fB-n\fR] [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR \fIpkg_fmri_pattern\fR \&.\&.\&.\fR .ad .br .sp .6 .RS 4n Remove packages that match the specified \fIpkg_fmri_pattern\fR pattern from the repository, including any files they reference that are not in use by any other package\&. The \fIpkg_fmri_pattern\fR pattern can include the \fB?\fR and \fB*\fR characters as \fBglob\fR(3C)-style wildcards to match one or more packages\&. .sp .LP Note - .sp .RS 2 .sp .LP All search index data for related publishers is removed\&. .RE This subcommand can be used only with file system based repositories\&. .LP Caution - .sp .RS 2 .sp .LP This operation is not reversible and should not be used while other clients are accessing the repository since it might cause them to fail during retrieval operations\&. .RE .sp .ne 2 .mk .na \fB\fB-n\fR\fR .ad .br .sp .6 .RS 4n Perform a trial run of the operation with no package changes made\&. A list of the packages to be removed is displayed before exiting\&. .RE .sp .ne 2 .mk .na \fB\fB-p\fR \fIpublisher\fR\fR .ad .br .sp .6 .RS 4n Only remove matching packages for the given publisher\&. If not provided, any matching packages are removed for all publishers\&. This option can be specified multiple times\&. .RE .sp .ne 2 .mk .na \fB\fB-s\fR \fIrepo_uri_or_path\fR\fR .ad .br .sp .6 .RS 4n Operate on the repository located at the given URI or file system path\&. .RE .RE .sp .ne 2 .mk .na \fB\fBpkgrepo set\fR [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR \fIsection/property\fR=[\fIvalue\fR] \&.\&.\&.\fR .ad .br .na \fB\fBpkgrepo set\fR [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR \fIsection/property\fR=([\fIvalue\fR]) \&.\&.\&.\fR .ad .br .sp .6 .RS 4n Set the value of the specified properties for the repository or publisher\&. .sp This subcommand can be used only with file system based repositories\&. .sp .sp .ne 2 .mk .na \fB\fB-p\fR \fIpublisher\fR\fR .ad .br .sp .6 .RS 4n Only set property data for the given publisher\&. If the publisher does not already exist, it is added\&. The special value \fBall\fR can be used to set the property for all publishers\&. .RE .sp .ne 2 .mk .na \fB\fB-s\fR \fIrepo_uri_or_path\fR\fR .ad .br .sp .6 .RS 4n Operate on the repository located at the given URI or file system path\&. .RE Properties and values can be specified using one of the following forms: .sp .sp .ne 2 .mk .na \fB\fIsection\fR/\fIproperty\fR=\fR .ad .br .sp .6 .RS 4n Clear the property value\&. .RE .sp .ne 2 .mk .na \fB\fIsection\fR/\fIproperty\fR=\fIvalue\fR\fR .ad .br .sp .6 .RS 4n Replace the property value with the given value\&. .RE .sp .ne 2 .mk .na \fB\fIsection\fR/\fIproperty\fR=(\fIvalue1\fR \fIvalue2\fR \fIvalueN\fR)\fR .ad .br .sp .6 .RS 4n Replace the property value with the list of values\&. .RE For repository versions 3 and 4, the following properties can be set for the repository: .sp .sp .ne 2 .mk .na \fB\fBpublisher/prefix\fR\fR .ad .br .sp .6 .RS 4n A string that represents the name of the default publisher\&. The first character must be a-z, A-Z, or 0-9\&. The remainder of the string can only contain the characters 0-9, -, \&., a-z, and A-Z\&. This value indicates the publisher that should be used when more than one publisher\'s packages are present, or when packages are published to the repository and a publisher is not specified\&. .RE For repository versions 3 and 4, the following properties can be set for individual publishers in the repository\&. Use the \fB-p\fR option to specify at least one publisher when you set these properties: .sp .sp .ne 2 .mk .na \fB\fBpublisher/alias\fR\fR .ad .br .sp .6 .RS 4n A string that represents the default alias that clients should use when adding a publisher using the repository\'s configuration data\&. The first character must be a-z, A-Z, or 0-9\&. The remainder of the string can only contain the characters 0-9, -, \&., a-z, and A-Z\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/check-certificate-revocation\fR\fR .ad .br .sp .6 .RS 4n A boolean to check whether a certificate has been revoked\&. When this property is set to \fBTrue\fR, the \fBpkgrepo verify\fR and \fBpkgrepo fix\fR commands attempt to contact any CRL distribution points in the certificates used for signature verification to determine whether the certificate has been revoked since being issued\&. The default value is \fBFalse\fR\&. This property is only used by the \fBverify\fR and \fBfix\fR subcommands to validate the contents of the repository\&. This property does not affect client settings\&. This value should be the same as the corresponding \fBpkg\fR(1) property value\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/collection_type\fR\fR .ad .br .sp .6 .RS 4n Can have the value \fBcore\fR or \fBsupplemental\fR, indicating the type of packages offered in this repository\&. .sp The \fBcore\fR type indicates that the repository contains all of the dependencies declared by packages in the repository\&. The \fBcore\fR type is primarily used for operating system repositories\&. .sp The \fBsupplemental\fR type indicates that the repository contains packages that rely on or are intended to be used with packages located in another repository\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/description\fR\fR .ad .br .sp .6 .RS 4n A paragraph of plain text that describes the purpose and contents of the repository\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/detailed_url\fR\fR .ad .br .sp .6 .RS 4n A URI that represents the location of a document (such as a web page) that provides additional information about the repository\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/legal_uris\fR\fR .ad .br .sp .6 .RS 4n A list of locations (URIs) for documents that provide additional legal information about the repository\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/mirrors\fR\fR .ad .br .sp .6 .RS 4n A list of locations (URIs) of repositories that contain a copy of the repository\'s package content but not the package metadata\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/name\fR\fR .ad .br .sp .6 .RS 4n A plain text string that contains the name of the repository\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/origins\fR\fR .ad .br .sp .6 .RS 4n A list of locations (URIs) of repositories that contain a complete copy of the repository\'s package metadata and content\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/refresh_seconds\fR\fR .ad .br .sp .6 .RS 4n An integer value that represents the number of seconds clients should wait before checking the repository for updated package data after each update check\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/registration_uri\fR\fR .ad .br .sp .6 .RS 4n A URI that represents the location of a resource that must be used to obtain credentials for access to the repository\&. A registration web page is one example\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/related_uris\fR\fR .ad .br .sp .6 .RS 4n A list of locations (URIs) of repositories that contain packages that users might be interested in\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/signature-required-names\fR\fR .ad .br .sp .6 .RS 4n A list of names that must be seen as common names of certificates while validating the signatures of a package\&. This property is only used by the \fBverify\fR and \fBfix\fR subcommands to validate the contents of the repository\&. This property does not affect client settings\&. These values should be the same as the corresponding \fBpkg\fR(1) property values\&. .RE .sp .ne 2 .mk .na \fB\fBrepository/trust-anchor-directory\fR\fR .ad .br .sp .6 .RS 4n The absolute path name of the directory that contains the trust anchors for packages in this repository\&. If not specified, \fB/etc/certs/CA/\fR is used\&. This property is only used by the \fBverify\fR and \fBfix\fR subcommands to validate the contents of the repository\&. This property does not affect client settings\&. This value should be the same as the corresponding \fBpkg\fR(1) property value\&. .RE Properties not documented here, but listed in the output of the \fBget\fR subcommand, are reserved for internal use and should not be set\&. .RE .sp .ne 2 .mk .na \fB\fBpkgrepo verify\fR [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR\fR .ad .br .sp .6 .RS 4n Verify that the following attributes of the package repository contents are correct: .sp .RS +4 .TP .ie t \(bu .el o File checksums .RE .RS +4 .TP .ie t \(bu .el o File permissions .sp The path leading to the repository is also checked to ensure that the \fBpkg5srv\fR user can read the repository contents\&. This check can be necessary for repositories that are made available using the \fBsvc:/application/pkg/server\fR service, or using the \fBsvc:/application/pkg/system-repository\fR service when the system has non-global zones\&. .RE .RS +4 .TP .ie t \(bu .el o Package manifest permissions .RE .RS +4 .TP .ie t \(bu .el o Package manifest content .RE .RS +4 .TP .ie t \(bu .el o Package signatures .sp Package manifest signatures are calculated based on the values of the \fBrepository/signature-required-names\fR, \fBrepository/trust-anchor-directory\fR, and \fBrepository/check-certificate-revocation\fR properties\&. .RE Errors are emitted to \fBstdout\fR\&. The \fBpkgrepo\fR command exits with a non-zero return code if any errors are emitted\&. .sp This subcommand can be used only with version 4 file system based repositories\&. .sp .ne 2 .mk .na \fB\fB-p\fR \fIpublisher\fR\fR .ad .br .sp .6 .RS 4n Perform the operation only for the specified publisher\&. If no publisher is specified, or if the special value \fBall\fR is specified, the operation is performed for all publishers\&. This option can be specified multiple times\&. .RE .sp .ne 2 .mk .na \fB\fB-s\fR \fIrepo_uri_or_path\fR\fR .ad .br .sp .6 .RS 4n Operate on the repository located at the given URI or file system path\&. .RE .RE .sp .ne 2 .mk .na \fB\fBpkgrepo fix\fR [\fB-v\fR] [\fB-p\fR \fIpublisher\fR]\&.\&.\&. \fB-s\fR \fIrepo_uri_or_path\fR\fR .ad .br .sp .6 .RS 4n Fix the contents of a repository by first verifying the repository, and then moving any invalid repository contents into a quarantine directory within the repository\&. .sp If repository errors are found, a repository rebuild is automatically performed\&. If any errors are found, a message is emitted to \fBstdout\fR showing which packages must be re-imported using \fBpkgsend\fR(1) or \fBpkgrecv\fR(1) in order to restore the repository contents\&. .sp This subcommand can be used only with version 4 file system based repositories\&. .sp .ne 2 .mk .na \fB\fB-v\fR\fR .ad .br .sp .6 .RS 4n Include output detailing the errors found during repository verification\&. .RE .sp .ne 2 .mk .na \fB\fB-p\fR \fIpublisher\fR\fR .ad .br .sp .6 .RS 4n Perform the operation only for the specified publisher\&. If no publisher is specified, or if the special value \fBall\fR is specified, the operation is performed for all publishers\&. This option can be specified multiple times\&. .RE .sp .ne 2 .mk .na \fB\fB-s\fR \fIrepo_uri_or_path\fR\fR .ad .br .sp .6 .RS 4n Operate on the repository located at the given URI or file system path\&. .RE .RE .sp .ne 2 .mk .na \fB\fBpkgrepo help\fR\fR .ad .br .sp .6 .RS 4n Display a usage message\&. .RE .sp .ne 2 .mk .na \fB\fBpkgrepo version\fR\fR .ad .br .sp .6 .RS 4n Display a unique string that identifies the version of the \fBpkg\fR(5) system\&. The values produced by the \fBversion\fR operation are not sortable and are not safe for comparison beyond equality\&. .RE .SH EXAMPLES .LP \fBExample 1\fR Create a Package Repository .sp .in +2 .nf $ \fBpkgrepo create /my/repository\fR .fi .in -2 .sp .LP \fBExample 2\fR Display Information .sp .LP Display a summary of publishers and the number of packages in a repository\&. .sp .in +2 .nf $ \fBpkgrepo info -s /my/repository\fR PUBLISHER PACKAGES STATUS UPDATED example\&.com 5 online 2011-07-22T18:09:09\&.769106Z $ \fBpkgrepo info -s http://pkg\&.oracle\&.com/solaris/release/\fR PUBLISHER PACKAGES STATUS UPDATED solaris 3941 online 2010-11-12T19:24:25\&.967246Z .fi .in -2 .sp .LP \fBExample 3\fR Rebuild Catalogs and Search Data .sp .LP Rebuild the repository\'s catalogs and search data\&. .sp .in +2 .nf $ \fBpkgrepo rebuild -s /my/repository\fR .fi .in -2 .sp .LP \fBExample 4\fR Refresh Catalogs and Search Data .sp .LP Refresh the repository\'s catalogs and search data\&. .sp .in +2 .nf $ \fBpkgrepo refresh -s /my/repository\fR $ \fBpkgrepo refresh -s http://example\&.com/repository\fR .fi .in -2 .sp .LP \fBExample 5\fR Display All Repository Properties .sp .in +2 .nf $ \fBpkgrepo get -s /export/repoSolaris11\fR SECTION PROPERTY VALUE publisher prefix solaris repository description Local\e copy\e of\e the\e Oracle\e Solaris\e 11\e repository repository name Oracle\e Solaris\e 11 repository version 4 $ \fBpkgrepo get -s http://pkg\&.oracle\&.com/solaris/release/\fR SECTION PROPERTY VALUE deployment content s11_11-11 deployment pubdate 20111102T222051Z publisher prefix solaris repository version 4 .fi .in -2 .sp .LP \fBExample 6\fR Display All Publisher Properties .sp .in +2 .nf $ \fBpkgrepo get -s http://pkg\&.oracle\&.com/solaris/release/ -p all\fR PUBLISHER SECTION PROPERTY VALUE solaris publisher alias solaris publisher prefix solaris solaris repository collection-type core solaris repository description This\e repository\e serves\e the\e Oracle\e Solaris\e 11\e Package\e repository\&. solaris repository legal-uris () solaris repository mirrors (http://pkg-cdn1\&.oracle\&.com/solaris\&.release/) solaris repository name Oracle\e Solaris\e 11\e Package\e Repository solaris repository origins () solaris repository refresh-seconds solaris repository registration-uri "" solaris repository related-uris () .fi .in -2 .sp .LP \fBExample 7\fR Set the Default Publisher .sp .in +2 .nf $ \fBpkgrepo set -s /my/repository publisher/prefix=example\&.com\fR .fi .in -2 .sp .LP \fBExample 8\fR Set a Publisher Property .sp .in +2 .nf $ \fBpkgrepo set -s /my/repository -p example\&.com \e\fR \fBrepository/origins=http://example\&.com/repository\fR .fi .in -2 .sp .LP \fBExample 9\fR Add a New Publisher To the Repository .sp .in +2 .nf $ \fBpkgrepo add-publisher -s /my/repository example\&.com\fR .fi .in -2 .sp .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 6n .rt Command succeeded\&. .RE .sp .ne 2 .mk .na \fB\fB1\fR\fR .ad .RS 6n .rt An error occurred\&. .RE .sp .ne 2 .mk .na \fB\fB2\fR\fR .ad .RS 6n .rt Invalid command line options were specified\&. .RE .sp .ne 2 .mk .na \fB\fB3\fR\fR .ad .RS 6n .rt Multiple operations were requested, but only some of them succeeded\&. .RE .sp .ne 2 .mk .na \fB\fB4\fR\fR .ad .RS 6n .rt No changes were made, nothing to do\&. .RE .sp .ne 2 .mk .na \fB\fB99\fR\fR .ad .RS 6n .rt An unanticipated exception occurred\&. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability \fBpackage/pkg\fR _ Interface Stability Uncommitted .TE .SH SEE ALSO .sp .LP \fBpkg\fR(1), \fBpkgrecv\fR(1), \fBpkgsend\fR(1), \fBpkg\&.depotd\fR(1M), \fBpkg\fR(5) .sp .LP \fICopying and Creating Package Repositories in Oracle Solaris 11\&.3\fR .sp .LP \fBhttps://java\&.net/projects/ips/pages/Home\fR .SH NOTES .sp .LP Most \fBpkgrepo\fR operations are not available for package archives\&. A package archive is a file, typically with a \fB\&.p5p\fR extension, as described in the \fB-a\fR option in the \fBpkgrecv\fR(1) man page\&. A package archive contains packages but does not contain repository configuration\&. However, the \fBpkgrepo list\fR, \fBpkgrepo info\fR, and \fBpkgrepo contents\fR commands work with package archives\&.