|Skip Navigation Links|
|Exit Print View|
|Adding and Updating Oracle Solaris 11 Software Packages Oracle Solaris 11 Information Library|
Use the pkg avoid command to avoid the specified packages if they are the target of a group dependency.
/usr/bin/pkg avoid [pkg_fmri_pattern ...]
With no arguments, the pkg avoid command displays each avoided package along with any packages that have a group dependency on that package.
With pkg_fmri_pattern specified, the pkg avoid command places the package names that currently match the specified patterns on the avoid list. Only packages that are not currently installed can be avoided. If a package is currently the target of a group dependency, uninstalling the package places it on the avoid list.
If a package is on the avoid list, installing it removes it from that list. Packages that are on the avoid list are installed if needed to satisfy a required dependency. If that dependency is removed, the package is uninstalled.
Use the pkg unavoid command to remove the specified packages from the avoid list.
/usr/bin/pkg unavoid [pkg_fmri_pattern ...]
Packages on the avoid list that match an installed package's group dependency cannot be removed from the avoid list using this subcommand. To remove a package from the avoid list that matches a group dependency, install the package.