System Administration Guide: Basic Administration

Removing a Solaris Patch

When you back out a patch, the patchrm command restores all files modified by that patch, unless:

The patchrm command calls pkgadd to restore packages that were saved from the initial patch installation.

During the patch removal process, patchrm keeps a log of the back out process in /tmp/backoutlog.process_id. This log file is removed if the patch backs out successfully.

How to Remove a Solaris Patch

Use this procedure if you need to remove a Solaris patch.

  1. Become superuser.

  2. Remove the patch.


    # patchrm patch-ID-revision
    
  3. Verify that the patch is removed.


    # patchadd -p | grep patch-ID-revision
    

Example—Removing a Solaris Patch

The following example removes the Solaris 8 patch, 111879–01.


# patchrm 111879-01

Checking installed patches...

Backing out patch 111879-01...

Patch 111874-02 has been backed out.

# showrev -p | grep 111879-01
#