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

Chapter1 Managing Solaris Patches (Overview)

Patch management involves applying SolarisTM patches to a system. Patch management might also involve removing unwanted or faulty patches. Removing patches is also called backing out patches.

The following overview information is in this chapter:

For information about applying patches to diskless client systems, see Patching Diskless Client OS Services in System Administration Guide: Basic Administration.

For information about recommended strategies and practices for using Solaris patches, go to http://download.oracle.com/817-0574/.

Types of Patches

A patch is a collection of files and directories that replaces or updates existing files and directories that are preventing proper execution of the existing software. The existing software is derived from a specified package format, which conforms to the Application Binary Interface (ABI).

You can manage patches on your Solaris system by using the Patch Manager software or by using the patchadd command.

Signed and Unsigned Patches

A signed patch is one that has a digital signature applied to it. A patch that has its digital signature verified has not been modified since the signature was applied. The digital signature of a signed patch is verified after the patch is downloaded to your system.

Patches for the Solaris 2.6, Solaris 7, and Solaris 8 releases are available as signed patches and as unsigned patches. Unsigned patches do not have a digital signature.

Signed patches are stored in JavaTM archive format (JAR) files and are available from the SunSolve OnlineSM web site. Unsigned patches are stored in directory format and are also available from the SunSolve Online web site as .zip files.

For information about applying patches to your system by using Patch Manager, see Managing Patches (Task Map).

For information about applying patches by using the patchadd command, see Chapter 25, Managing Solaris Patches (Tasks), in System Administration Guide: Basic Administration.

Accessing Solaris Patches

Sun customers can access patches from the SunSolve Online web site whether or not they are in the SunSpectrumSM program. These patches are updated nightly.

You can obtain Solaris patches in the following ways:

You can access individual patches or a set of patches from a patch cluster, or refer to patch reports. You can also use Sun Patch Manager to analyze your system to determine the appropriate patches. Patch Manager also can download and apply the patches to your system.

Each patch is associated with a README file that has information about the patch.

Solaris Patch Numbering

Patches are identified by unique patch IDs. A patch ID is an alphanumeric string that is a patch base code and a number that represents the patch revision number joined with a hyphen. For example, patch 108528-10 is the patch ID for the SunOSTM 5.8 kernel update patch.

Tools for Managing Solaris Patches

The following table summarizes the availability of the Solaris patch management tools.

You can now use the smpatch command to apply patches to Solaris 8 systems.

If you need to apply a patch to a diskless client system, see Patching Diskless Client OS Services in System Administration Guide: Basic Administration.

Tool Availability 

patchadd/patchrm Commands

Solaris 2.6 and Solaris 7 Patch Management Tools 

Sun Patch Manager 2.0 smpatch Command

PatchPro Interactive or PatchPro Expert 

How do I get this tool? 

Included with the Solaris release 

Download the tool from the Sun Download Center web site [The Sun Download Center web site is http://wwws.sun.com/software/download.]

Download the Solaris 8 version of the tool from the Sun Download Center web site

Run tool from the PatchPro web site [The PatchPro web site is http://www.sun.com/PatchPro.]

Solaris release availability

Solaris 2.6, Solaris 7, and Solaris 8 releases 

Solaris 2.6 and Solaris 7 releases 

Solaris 8 release 

Solaris 2.6, Solaris 7, and Solaris 8 releases 

Applies signed patches? 

No 

Yes, and automatically verifies the signed patch when it is downloaded 

Yes, and automatically verifies the signed patch when it is downloaded 

No, these tools do not apply patches 

Applies unsigned patches? 

Yes 

No 

Yes, but the patches must be unzipped first 

No 

GUI available? 

No 

No 

No 

Yes, these tools can only be run from the PatchPro web site

Analyzes system to determine the appropriate patches and downloads signed or unsigned patches 

No 

Yes, signed patches only 

Yes, signed patches only 

Yes, unsigned patches only 

Local system patch support 

Local 

Local 

Local 

No 

RBAC support? 

Yes 

No 

Yes 

No 

Managing Solaris Patches

When you apply a patch, the patch tools call the pkgadd command to apply the patch packages from the patch directory to a local system's disk.


Caution  Caution

Do not run the pkgadd command directly to apply patches.


More specifically, the patch tools do the following:

While you apply patches, the patchadd command logs information in the /var/sadm/patch/patch-id/log file.

The patchadd command cannot apply a patch under the following conditions:

Selecting the Best Method for Applying Patches

You can use several different methods to download or apply one or more patches to your system. Use the following table to determine which method is best for your needs.

Command or Tool 

Description 

For More Information 

smpatch update

Solaris 8 release Use this command to analyze your system to determine the appropriate patches, and to automatically download and apply the patches. Note that this command will not apply a patch that has the interactive property set.

Only the local mode smpatch is available.

How to Update Your System With Patches

smpatch(1M) man page

smpatch analyze and smpatch update

Solaris 8 release First, use smpatch analyze to analyze your system to determine the appropriate patches. Then, use smpatch update to download and apply one or more of the patches to your system.

Only the local mode smpatch is available.

How to Analyze Your System to Obtain the List of Patches to Apply

How to Update Your System With Patches

smpatch(1M) man page

smpatch analyze, smpatch download, and smpatch add

Solaris 8 release First, use smpatch analyze to analyze your system to determine the appropriate patches. Then, use smpatch download to download them. This command also downloads any prerequisite patches. Then, use smpatch add to apply one or more of the patches to your system while the system is in single-user or multiuser mode.

Only the local mode smpatch is available.

Managing Patches (Task Map)

smpatch(1M) man page

patchadd

Solaris 2.6, Solaris 7, and Solaris 8 releases Apply unsigned patches to your system.

patchadd(1M) man page

Managing Patches in the Solaris Operating System (Road Map)

Use this road map to identify all the tasks for managing Solaris patches. Each task points to a series of additional tasks such as managing signed or unsigned patches.

Task 

Description 

For Instructions 

Determine whether to apply signed or unsigned patches. 

Determine whether applying signed or unsigned patches is best for your environment. 

Determining Whether to Apply Signed or Unsigned Patches to Your System

Apply a patch to your system. 

You can apply patches in the following ways: 

  • Use the smpatch command on Solaris 8 systems to apply signed or unsigned patches.

  • Use the patchadd command on Solaris 2.6, Solaris 7, or Solaris 8 systems to apply unsigned Solaris patches.

Determining Whether to Apply Signed or Unsigned Patches to Your System

The key factor when determining whether to apply signed or unsigned patches to your system is whether you trust of the source of patches.

If you trust the source of patches, for example, a patch CD from a known distributor or an HTTPS connection to a trusted web site, you can use unsigned patches. However, if you do not trust the source, use signed patches.

If you are unsure about whether to trust the source of patches, use signed patches.