These examples show the packages that are dependencies of the specified package.
The following example shows packages that have a require dependency on the system/kernel/power package:
$ pkg search -Hlo pkg.name require:system/kernel/power system/kernel/dynamic-reconfiguration/i86pc system/hal
The following pkg contents command confirms the results of the search. The requested output action.raw is a pseudo attribute that displays the action exactly as it appears in the package manifest.
$ pkg contents -rt depend -a fmri='*power*' -o pkg.name,action.raw i86pc system/hal PKG.NAME ACTION.RAW system/hal depend fmri=pkg:/system/kernel/power @0.5.11-0.175.2.0.0.34.0 type=require variant.opensolaris.zone=global system/kernel/dynamic-reconfiguration/i86pc depend fmri=pkg:/system/kernel/power type=require
The following example shows that many packages have an exclude dependency on pkg:/x11/server/[email protected]:
$ pkg search -lo pkg.name,fmri 'depend:exclude:*xorg*' PKG.NAME FMRI x11/server/xorg/driver/xorg-video-ati pkg:/x11/server/[email protected] x11/server/xvnc pkg:/x11/server/[email protected] x11/server/xserver-common pkg:/x11/server/[email protected] x11/server/xorg/driver/xorg-input-vmmouse pkg:/x11/server/[email protected] x11/server/xephyr pkg:/x11/server/[email protected] ...