Information Technology Reference
In-Depth Information
The patchadd command can be used to display a list of installed patches for
other system configurations using the -C , -R , and -S command-line argu-
ments, as previously described. For example, to display the patches applied
to an OS service named Solaris_9, you use the following patchadd command:
patchadd -S solaris_9 -p
You can display a list of patches applied to a particular package by using the
pkgparam command. The following example lists the patches applied to the
SUNWcsu package:
# pkgparam SUNWrcmds PATCHLIST
112875-01
#
Removing a Patch
The patchrm command is used to remove or back out a patch. The system
configurations supported by the patchadd command are also supported by
the patchrm command.
# patchrm 112875-01
Checking installed patches...
Backing out patch 112875-01...
Patch 112875-01 has been backed out.
#
The same -C , -R , and -S command-line arguments, as previously described, are
used. For example, to remove patch 112875-01 from the bootable root image
of a diskless client named client5 , you use the following patchrm command:
patchrm -R /export/root/client5 112875-01
Because the default backup directory could have changed during installation
(by using the -B command-line argument with the patchadd command), the
patchrm command also supports the -B argument.
In addition, you can use the -f command-line argument of the patchrm com-
mand to remove a patch that has been superseded by another patch.
You can remove installed patches and return the system to the state it was in
before the patch was installed as long as the following conditions are met:
The patch is not required by another patch or has been made obsolete
by a later patch.
The patch was not installed using patchadd -d , which informs patchadd
not to save a copy of files before they are updated or replaced.
Search WWH ::




Custom Search