|Skip Navigation Links|
|Exit Print View|
|Copying and Creating Oracle Solaris 11.1 Package Repositories Oracle Solaris 11.1 Information Library|
You can create a repository that is a subset of the source repository. The following command copies all versions of the group/feature/amp package and all dependencies of those versions to the amprepo repository. The amprepo repository was previously created using the pkgrepo create command.
$ pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /export/amprepo \ -m all-versions -r group/feature/amp
You can add packages from different publishers to your repository. The following pkgrecv command adds all the packages from the ISVproducts.p5p package archive to the local repository. In the pkg list output, the publisher is shown because it is not the publisher that is highest ranked in search order in this image.
$ pkg list -g /tmp/ISVproducts.p5p NAME (PUBLISHER) VERSION IFO isvtool (isvpub) 1.0 --- $ pkgrecv -s /tmp/ISVproducts.p5p -d /export/repoSolaris11 '*' Processing packages for publisher isvpub ... Retrieving and evaluating 1 package(s)... PROCESS ITEMS GET (MB) SEND (MB) Completed 1/1 0.0/0.0 0.0/0 $ pkg list -g /export/repoSolaris11 isvtool NAME (PUBLISHER) VERSION IFO isvtool (isvpub) 1.0 ---
A package archive is a file that contains publisher information and one or more packages provided by that publisher. See Publish as a Package Archive in Packaging and Delivering Software With the Image Packaging System in Oracle Solaris 11.1.