Removing patches in global and non-global zones

Use the Solaris Patch Rollback Wizard to remove a patch package and restore previously saved files in a global or non-global zone, or both. This wizard creates a Fixlet that uses the patchrm command to complete the action.

Before you begin

  • Ensure that each non-global zone is reporting back to the console as a separate endpoint. See Configuring clients in non-global zones.
  • Run the Solaris Zone Support task (ID #1). This task identifies the type of zone in which a client is running. It then determines whether or not a certain patch content is applicable to the zone in question.
  • Determine the patch ID and revision number of the Solaris package that you want to remove from the global or non-global zone.
  • Check how the SUNW_PKG_ALLZONES patch package is set. To learn more about this package parameter, see the Oracle System Administration Guide at http://docs.oracle.com/cd/E19044-01/sol.containers/817-1592/z.pkginst.ov-12/index.html.

About this task

The interaction between the following factors determines the removal of a patch in global and non-global zones.
  • SUNW_PKG_ALLZONES variable
  • patchrm -G option

For more information about these factoring parameters, see the System Administration Command Guide at http://docs.oracle.com/cd/E19253-01/816-5166/patchrm-1m/index.html.

Note: If the patch selected was installed without backing up the original files, or if the patch is required by other installed patches, the patch will not be uninstalled and the action will fail.

Procedure

  1. From the Patch Management domain, click OS Vendors > Sun Microsystems Solaris > Configuration > Solaris Patch Rollback Wizard.
  2. Click the link to activate the Patchrm Output property, which you use to view detailed results.
    Figure 1. Solaris Patch Rollback Wizard

    Solaris Patch Rollback Wizard
  3. Enter a namespace, and choose the interval for which you want to evaluate output. Then click OK.
    Figure 2. Patchrm Output Activation

    Patchrm Output Activation
  4. Select or enter the patch ID of the Solaris patch that you want to remove and then click Finish. The Take Action dialog opens.
  5. Depending on what you want to do, follow the appropriate procedure.
    • To remove the patch from the global and non-global zones, complete the following steps:
      1. Ensure that the SUNW_PKG_ALLZONES flag of the specified patch is set to true.
      2. Select the endpoint that represents the instance of the global zone as the target.
    • To remove the patch from the global zone only, complete the following steps:
      1. Ensure that the SUNW_PKG_ALLZONES flag of the specified patch is set to false.
      2. Add the -G option to the Action Script.
        Figure 3. Adding the patchrm -G option in the Action Script

        Adding the patchrm -G option in the Action Script
      3. Select the endpoint that represents the instance of the global zone as the target.
    • To remove the patch from the non-global zone only, complete the following steps:
      1. Ensure that the SUNW_PKG_ALLZONES flag of the specified patch is set to false.
      2. Select the endpoint that represents the instance of the non-global zone as the target.
  6. Click OK.