Copying and Creating Package Repositories in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014

Examining Packages In Your Repository

In addition to the pkgrepo info and pkgrepo list commands shown in Adding Packages to Your Repository, you can use the pkgrepo contents command to examine the content of packages in your repository.

For a single package, the output from the pkgrepo contents command is the same as the output from the pkg contents -m command. The pkgrepo contents command displays the output for each matching package in the specified repository, while the pkg contents command displays output only for versions of matching packages that are installable in this image. If you specify the -t option, the pkgrepo contents command shows only the specified actions.

The following example does not need to specify the version of the package because only one version of this package exists in the specified repository. This package contains depend actions to provide the set of Oracle Solaris packages required for installation and operation of Oracle Database 12.

$ pkgrepo -s \
contents -t depend oracle-rdbms-server-12cR1-preinstall
depend fmri=x11/library/libxi type=group
depend fmri=x11/library/libxtst type=group
depend fmri=x11/session/xauth type=group
depend fmri=compress/unzip type=require
depend fmri=developer/assembler type=require
depend fmri=developer/build/make type=require