Oracle® Solaris Cluster System Administration Guide

Exit Print View

Updated: October 2015

How to Uninstall a Package

  1. Assume a role that provides solaris.cluster.admin RBAC authorization.
  2. Uninstall an existing package.
    # pkg uninstall pkg-fmri

    If you want to uninstall more than one package, use the following syntax.

    # pkg uninstall pkg-fmri pkg-fmri

    The pkg uninstall command will fail if there are other installed packages that depend on the pkg-fmri you are uninstalling. To uninstall the pkg-fmri, you must supply the pkg uninstall command with all the pkg-fmri dependents. For additional information on uninstalling packages, see Adding and Updating Software in Oracle Solaris 11.2 and the pkg (1) man page.