Information Technology Reference
In-Depth Information
The default backup directories are located under /var/sadm/pkg and are based
on the installed package or packages being modified by the patch and the patch
number. For example, the SPARC rpc.rwalld patch (112875-01) modified the
SUNWrcmds package. Any files changed by installing this patch are saved
under the /var/sadm/pkg/SUNWrcmds/112875-01 directory. You can specify a
different backup directory by using the -B command-line argument.
The patchadd command will fail if any of the following occur:
A package being patched is not installed or is only partially installed.
The patch requires another patch that is not installed.
The patch is incompatible with another patch already installed.
The current version or a higher version of the patch is already installed.
The architecture of the patch and the system do not match.
After unzipping a patch, the zip file can be deleted to save space. Likewise, after
installing a patch, the files associated with the patch in the patch spool directory
can be deleted to save space.
Determining Installed Patches
Two commands can be used to generate a list of installed patches for a stand-
alone system:
showrev -p
patchadd -p
These commands generate almost identical lists. The following example illus-
trates the use of the showrev command (the output is formatted for readability):
# showrev -p
Patch: 112875-01 Obsoletes: Requires: Incompatibles: Packages: SUNWrcmds
#
When a patch is installed, information regarding the patch is added to the
pkginfo files of the package(s) that are updated by the patch. The pkginfo
files are located in subdirectories under the /var/sadm/pkg directory. The
showrev and patchadd commands extract and format information from
the pkginfo files. In addition to the patch number and the package(s) that the
patch updates, any related information, such as other required patches or
incompatible patches, is listed.
Search WWH ::




Custom Search