Sun Patch Manager 2.0 Administration Guide for the Solaris 8 Operating System

ProcedureHow to Use luupgrade to Apply a List of Patches to an Inactive Boot Environment

A patch list that is created by the smpatch command can be used by luupgrade to apply patches to an inactive boot environment. You can also use the luupgrade command to remove patches from an inactive boot environment based on showrev information. See the luupgrade(1M) and showrev(1M) man pages.


Note

This procedure assumes that you have created a second boot environment that is a duplicate of the active boot environment. See the lumake(1M) man page for information about creating boot environments.


Steps
  1. Become an appropriately authorized user or assume a role that includes the Software Installation profile or the solaris.admin.patchmgr.* authorization.

    The System Administrator profile includes the appropriate profiles. To create the role and assign the role to a user, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Perform a patch analysis on the active boot environment to obtain the list of appropriate patches to apply to the inactive boot environment, and remove the synopsis for each patch entry.


    # smpatch analyze | sed 's/ .*//' > patch-list-file
    

    The modified file will be a list of patches, one patch ID per line.

  3. Download the patches from a patch list to your system.


    # smpatch download -x idlist=patch-list-file
    
  4. Apply patches from a patch list to the inactive boot environment.


    # luupgrade -t -n BE-name -s dir-name `cat patch-list-file`
    

    You must specify the name of the inactive boot environment to update, BE-name, and the directory where the patches are stored, dir-name.

  5. (Optional) To remove a patch from the inactive boot environment, use the following command:


    # luupgrade -T -n BE-name patch-id
    

    You must specify the name of the inactive boot environment to update, BE-name, and the patch to be removed, patch-id.


Example 56 Using luupgrade to Apply a List of Patches to an Inactive Boot Environment