Previous Table of Contents Next


CHAPTER 15
Installing and Managing System Software Patches

Patch Distribution
Patch Numbering
Installing Patches
Removing Patches

PATCH ADMINISTRATION INVOLVES INSTALLING OR REMOVING SOLARIS PATCHES FROM A running Solaris system. It may also involve removing or backing out unwanted or faulty patches.

A patch is a collection of files and directories that replaces or updates existing files and directories to facilitate proper execution of the software. The existing software is derived from a specific package format, which conforms to the Application Binary Interface. For more information about packages, see Chapter 13, &147;Package Commands.&148;

The Solaris 2.6 release bundles the following two commands for administering patches

  patchadd: Use to install directory-format patches to a Solaris 2.x system.
  patchrm: Use to remove patches installed on a Solaris 2.x system. This command restores the file system to its state before a patch was applied.

These commands replace the installpatch and backoutpatch commands that previously shipped with each individual patch.

Detailed information about how to install and back out a patch is provided in the Install.info file that accompanies each patch. Each patch also contains a README file that contains specific information about the patch.

Before installing patches, you need to know what patches have previously been installed on the system. Table 15-1 shows commands that provide useful information about existing patches.

Table 15-1 Useful Commands for Patch Administration

Command Description
showrev -p Shows all patches applied to a system.
pkgparam pkgid PATCHLIST Shows all patches applied to the package identified by pkgid.
pkgparam pkgid PATCH_INFO_patch-number Shows the installation date and time of the host from which the package was applied. pkgid is the name of the package; for example, SUNWadmap.
patchadd -R client_root_path -p Shows all patches applied to a client from the server's console.
patchadd -p Shows all patches applied to a system.

Patch Distribution

All Sun customers can access security patches and other recommended patches from the World Wide Web or via anonymous ftp. Sun customers who have purchased a service contract can access an extended set of patches and a complete database of patch information. This information is available on the World Wide Web or by anonymous ftp, and is regularly distributed on a CD-ROM. Table 15-2 summarizes customer access to patch information.

Table 15-2 Customer Access to Patch Information

Status Patch Access
Sun Service customer The SunSolve database provides access to patch information. Patches are available from the Web or by anonymous ftp.
Not a Sun Service customer Customers can access a general set of security patches and other recommended patches from the Web or by anonymous ftp.

Requirements to Access Sun Patches

You can access Sun patches from the World Wide Web or by anonymous ftp. If you have purchased a Sun service contract, you also can get patches from the regularly distributed patch CD-ROM.

To access patches from the Web, you need a system that is connected to the Internet and capable of running Web browsing software such as Mosaic or Netscape.

To access patches by anonymous ftp, you need a system that is connected to the Internet and capable of running an ftp program.

Accessing Patches from the Web

To access patches from the Web, use the following URL:

http://www.sun.com/
1.  After you reach the Sun home page, click on the Sales and Service button and navigate your way to the SunSolve patch database, shown in Figure 15-1.


Figure 15-1  The SunSolve Online Public Patch Access Web page.

The patch database for publicly available patches is labeled Public patch access. The patch database for the comprehensive set of patches and patch information available to contract customers is labeled Contract customer patch access. You are prompted for a password to access the contract customer database.

You also can use the following URL to access publicly available patches:

http://sunsite.unc.edu/

Figure 15-2 shows the Sun Site Web page.


Figure 15-2  The Sun Site Web page.

Accessing Patches by ftp

To access patches by ftp, use the ftp command to connect to either of the following:

  sunsolve1.sun.com (provided by Sun Service)
  sunsite.unc.edu (maintained by the University of North Carolina)

When ftp prompts you for a login, enter anonymous as the login name. When prompted for a password, enter your complete email address. After login is complete, you can find publicly available patches in the /pubs/patches directory.


NOTE:  You must transfer patches in binary mode. To change to binary mode, at the ftp prompt, type bin and press Return.


Previous Table of Contents Next