Adding and Changing Publisher Origins
The following commands show adding an origin to the solaris
publisher. If multiple origins are configured for a given publisher in an image, the IPS client attempts to choose the best origin from which to retrieve package data. If you use the same set of origins for a publisher for systems in different geographic locations, for example, IPS clients will attempt to choose the best origin for each different system at that particular time.
$ pkg publisher PUBLISHER TYPE STATUS P LOCATION solaris origin online F http://pkg.oracle.com/solaris/release/ $ pkg set-publisher -g /var/share/pkgrepos/solaris solaris $ pkg publisher PUBLISHER TYPE STATUS P LOCATION solaris origin online F http://pkg.oracle.com/solaris/release/ solaris origin online F file:///var/share/pkgrepos/solaris/
Use the -G
option to remove a URI as an origin for the specified publisher.
To change an origin URI for a publisher, add the new URI and remove the old URI.
$ pkg set-publisher -G '*' -g file:///var/share/pkgrepos/isvrepo/ isvpub