JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 1M: System Administration Commands     Oracle Solaris 10 1/13 Information Library
search filter icon
search icon

Document Information

Preface

Introduction

System Administration Commands - Part 1

System Administration Commands - Part 2

metahs(1M)

metaimport(1M)

metainit(1M)

metaoffline(1M)

metaonline(1M)

metaparam(1M)

metarecover(1M)

metarename(1M)

metareplace(1M)

metaroot(1M)

metaset(1M)

metassist(1M)

metastat(1M)

metasync(1M)

metattach(1M)

mib2c(1M)

mib2mof(1M)

mibiisa(1M)

mipagent(1M)

mipagentconfig(1M)

mipagentstat(1M)

mkbootmedia(1M)

mkdevalloc(1M)

mkdevmaps(1M)

mkfifo(1M)

mkfile(1M)

mkfs(1M)

mkfs_pcfs(1M)

mkfs_udfs(1M)

mkfs_ufs(1M)

mknod(1M)

mkpwdict(1M)

modinfo(1M)

modload(1M)

modunload(1M)

mofcomp(1M)

mofreg(1M)

monacct(1M)

monitor(1M)

mount(1M)

mountall(1M)

mount_cachefs(1M)

mountd(1M)

mount_hsfs(1M)

mount_nfs(1M)

mount_pcfs(1M)

mount_tmpfs(1M)

mount_udfs(1M)

mount_ufs(1M)

mount_xmemfs(1M)

mpathadm(1M)

mpstat(1M)

msgid(1M)

mvdir(1M)

named(1M)

named-checkconf(1M)

named-checkzone(1M)

named-compilezone(1M)

ncaconfd(1M)

ncheck(1M)

ncheck_ufs(1M)

ndd(1M)

netservices(1M)

netstat(1M)

netstrategy(1M)

newaliases(1M)

newfs(1M)

newkey(1M)

nfs4cbd(1M)

nfsd(1M)

nfslogd(1M)

nfsmapid(1M)

nfsstat(1M)

nisaddcred(1M)

nisaddent(1M)

nisauthconf(1M)

nisbackup(1M)

nis_cachemgr(1M)

nisclient(1M)

nisd(1M)

nisd_resolv(1M)

nisinit(1M)

nisldapmaptest(1M)

nislog(1M)

nispasswdd(1M)

nisping(1M)

nispopulate(1M)

nisprefadm(1M)

nisrestore(1M)

nisserver(1M)

nissetup(1M)

nisshowcache(1M)

nisstat(1M)

nisupdkeys(1M)

nlsadmin(1M)

nscd(1M)

nslookup(1M)

nsupdate(1M)

ntpdate(1M)

ntpq(1M)

ntptrace(1M)

nulladm(1M)

obpsym(1M)

ocfserv(1M)

oplhpd(1M)

parse_dynamic_clustertoc(1M)

passmgmt(1M)

patchadd(1M)

patchrm(1M)

pbind(1M)

pcitool(1M)

pcmciad(1M)

pfinstall(1M)

pginfo(1M)

pgstat(1M)

pgxconfig(1M)

picld(1M)

ping(1M)

pkg2du(1M)

pkgadd(1M)

pkgadm(1M)

pkgask(1M)

pkgchk(1M)

pkgcond(1M)

pkgdep(1M)

pkgrm(1M)

plockstat(1M)

pmadm(1M)

pmconfig(1M)

pntadm(1M)

pooladm(1M)

poolbind(1M)

poolcfg(1M)

poold(1M)

poolstat(1M)

ports(1M)

powerd(1M)

poweroff(1M)

ppdmgr(1M)

pppd(1M)

pppoec(1M)

pppoed(1M)

pppstats(1M)

pprosetup(1M)

pprosvc(1M)

praudit(1M)

prctmp(1M)

prdaily(1M)

printmgr(1M)

privatepw(1M)

prodreg(1M)

projadd(1M)

projdel(1M)

projmod(1M)

prstat(1M)

prtacct(1M)

prtconf(1M)

prtdiag(1M)

prtdscp(1M)

prtfru(1M)

prtpicl(1M)

prtvtoc(1M)

psradm(1M)

psrinfo(1M)

psrset(1M)

putdev(1M)

putdgrp(1M)

pwck(1M)

pwconv(1M)

quot(1M)

quota(1M)

quotacheck(1M)

quotaoff(1M)

quotaon(1M)

raidctl(1M)

ramdiskadm(1M)

rarpd(1M)

rcapadm(1M)

rcapd(1M)

rctladm(1M)

rdate(1M)

rdisc(1M)

reboot(1M)

regadm(1M)

reject(1M)

rem_drv(1M)

remove_allocatable(1M)

removef(1M)

repquota(1M)

re-preinstall(1M)

restricted_shell(1M)

rexd(1M)

rexecd(1M)

rlogind(1M)

rm_install_client(1M)

rmmount(1M)

rmt(1M)

rndc(1M)

rndc-confgen(1M)

roleadd(1M)

roledel(1M)

rolemod(1M)

root_archive(1M)

route(1M)

routeadm(1M)

routed(1M)

rpcbind(1M)

rpc.bootparamd(1M)

rpcinfo(1M)

rpc.mdcommd(1M)

rpc.metad(1M)

rpc.metamedd(1M)

rpc.metamhd(1M)

rpc.nisd(1M)

rpc.nisd_resolv(1M)

rpc.nispasswdd(1M)

rpc.rexd(1M)

rpc.rstatd(1M)

rpc.rusersd(1M)

rpc.rwalld(1M)

rpc.smserverd(1M)

rpc.sprayd(1M)

rpc.yppasswdd(1M)

rpc.ypupdated(1M)

rpld(1M)

rquotad(1M)

rsh(1M)

rshd(1M)

rstatd(1M)

rtc(1M)

rtquery(1M)

runacct(1M)

rusersd(1M)

rwall(1M)

rwalld(1M)

rwhod(1M)

sa1(1M)

sa2(1M)

sac(1M)

sacadm(1M)

sadc(1M)

saf(1M)

sar(1M)

savecore(1M)

scadm(1M)

sckmd(1M)

sconadm(1M)

sdpadm(1M)

sendmail(1M)

setuname(1M)

setup_install_server(1M)

sf880drd(1M)

sftp-server(1M)

share(1M)

shareall(1M)

share_nfs(1M)

showmount(1M)

showrev(1M)

shutacct(1M)

shutdown(1M)

slpd(1M)

smartcard(1M)

smattrpop(1M)

smbios(1M)

smc(1M)

smccompile(1M)

smcconf(1M)

smcregister(1M)

smcron(1M)

smcwebserver(1M)

smdiskless(1M)

smexec(1M)

smgroup(1M)

smlog(1M)

smmaillist(1M)

smmultiuser(1M)

smosservice(1M)

smpatch(1M)

smprofile(1M)

smreg(1M)

smrole(1M)

smrsh(1M)

smserialport(1M)

smtnrhdb(1M)

smtnrhtp(1M)

smtnzonecfg(1M)

smuser(1M)

snmpbulkget(1M)

snmpbulkwalk(1M)

snmpcmd(1M)

snmpconf(1M)

snmpd(1M)

snmpdelta(1M)

snmpdf(1M)

snmpdx(1M)

snmpget(1M)

snmpgetnext(1M)

snmpinform(1M)

snmpnetstat(1M)

snmpset(1M)

snmptable(1m)

snmptest(1M)

snmptranslate(1m)

snmptrap(1M)

snmptrapd(1M)

snmpusm(1M)

snmpvacm(1M)

snmpwalk(1M)

snmpXdmid(1M)

snmpXwbemd(1M)

snoop(1M)

soconfig(1M)

soladdapp(1M)

soldelapp(1M)

solstice(1M)

sppptun(1M)

spray(1M)

sprayd(1M)

sshd(1M)

ssh-keysign(1M)

startup(1M)

statd(1M)

stclient(1M)

stmsboot(1M)

strace(1M)

strclean(1M)

strerr(1M)

sttydefs(1M)

su(1M)

sulogin(1M)

suninstall(1M)

SUNWafb_config(1M)

SUNWffb_config(1M)

SUNWgfb_config(1M)

SUNWifb_config(1M)

SUNWjfb_config(1M)

SUNWkfb_config(1M)

SUNWm64_config(1M)

SUNWnfb_config(1M)

SUNWpfb_config(1M)

SUNWzulu_config(1M)

svcadm(1M)

svccfg(1M)

svc.configd(1M)

svc.startd(1M)

swap(1M)

sync(1M)

syncinit(1M)

syncloop(1M)

syncstat(1M)

sysdef(1M)

syseventadm(1M)

syseventconfd(1M)

syseventd(1M)

sysidconfig(1M)

sysidkbd(1M)

sysidnet(1M)

sysidnfs4(1M)

sysidns(1M)

sysidpm(1M)

sysidroot(1M)

sysidsys(1M)

sysidtool(1M)

syslogd(1M)

sys-unconfig(1M)

talkd(1M)

tapes(1M)

taskstat(1M)

telinit(1M)

telnetd(1M)

tftpd(1M)

System Administration Commands - Part 3

patchadd

- apply a patch package to a system running the Solaris operating system

Synopsis

patchadd [-dun] [-G] [-B backout_dir] [-k keystore] 
     [-P passwd] [-t] [-x proxy] {patch} | 
     {-M patch_location [patch_list]} [-C net_install_image | 
     -R client_root_path | -S service]
patchadd -p 
     [-C net_install_image | -R client_root_path | -S service]

Description

patchadd applies a patch package to a system running the Solaris 2.x operating environment or later Solaris environments (such as Solaris 10) that are compatible with Solaris 2.x. This patch installation utility cannot be used to apply Solaris 1 patches. patchadd must be run as root.

The patchadd command has the following forms:

Starting with version 10 of the Solaris operating system, patchadd performs validity and dependency checking among a collection of patches that you specify with the -M source specifier. See the description of -M under OPERANDS, below.

With respect to zones(5), when invoked in the global zone, by default, patchadd patches all appropriate packages in all zones. Patching behavior on system with zones installed varies according to the following factors:

The interaction of the factors above is specified in “Interaction of -G and pkginfo Variable in Zones,” below.

When you add patches to packages on a Solaris system with zones installed, you will see numerous zones-related messages, the frequency and content of which depend on whether you invoke patchadd in a global or local zone, the setting of SUNW_PKG_ALLZONES, and the use of the -G option.

Note that if you apply a patch that modifies objects in the boot archive, you will need to run the bootadm command shown below. This is true whether the patch is installed individually or as part of a cluster, using install_cluster and specifying an alternate root.

# bootadm update_archive -R /altroot

If you do not enter the preceding command, you will need to boot twice to build a clean boot archive.

The patch, -M, -C, -R, and -S arguments shown in the SYNOPSIS are described under OPERANDS, following OPTIONS.

Options

The following options are supported:

-B backout_dir

Saves backout data to a directory other than the package database. Specify backout_dir as an absolute path name.

-d

Does not back up the files to be patched. The patch cannot be removed.

-G

Add patch(es) to packages in the current zone only. When used in the global zone, the patch is added to packages in the global zone only and is not propagated to packages in any existing or yet-to-be-created non-global zone. When used in a non-global zone, the patch is added to packages in the non-global zone only. See “Interaction of -G and pkginfo Variable in Zones,”, below.

-k keystore

Use keystore as the location to get trusted certificate authority certificates when verifying digital signatures found in each patch. If no keystore is specified, then the default keystore locations are searched for valid trusted certificates. See KEY STORE LOCATIONS in pkgadd(1M) for more information.

-n

Tells patchadd to ignore the signature and not to validate it. This should be used only when the content of the patch is known and trusted, and is primarily included to allow patchadd to apply a patch on systems without the ability to verify the patch signature, such as Solaris 8.

-p

In the second form, displays a list of the patches currently applied.

-P passwd

Password to use to decrypt the keystore specified with -k, if required. See PASS PHRASE ARGUMENTS in pkgadd(1M) for more information about the format of this option's argument.

-t

This option has been deprecated.

-u

This option has been deprecated.

-x proxy

Specify a HTTP[S] proxy to use when downloading packages The format of proxy is host:port, where host is the hostname of the HTTP[S] proxy, and port is the port number associated with the proxy. This switch overrides all other methods of specifying a proxy. See ENVIRONMENT VARIABLES in pkgadd(1M) for more information on alternate methods of specifying a default proxy.

Operands

The following operands are supported:

Sources

patchadd must be supplied a source for retrieving the patch. Specify sources using the syntax shown below.

patch

The absolute path name to patch_id or a URI pointing to a signed patch. /var/sadm/spool/patch/104945-02 is an example of a patch. https://syrinx.eng:8887/patches/104945-02 is an example of a URI pointing to a signed patch.

-M patch_location [patch_list]

Specifies the patches to be installed by directory location or URL and, optionally, the name of a file containing a patch list.

When using a directory as the patch_location, specify that directory as an absolute path name. Specify a URL as the server and path name that contains the spooled patches. The optional patch_list is the name of the file at a specified location containing the patches to be installed.

-M patch_location patch_id [patch_id...]

Specifies the patches to be installed by directory location or URL, and patch number.

To use the directory location or URL and the patch number, specify patch_location as the absolute path name of the directory that contains spooled patches. Specify a URL as the server and path name that contains the spooled patches. Specify patch_id as the patch number of a given patch. 104945-02 is an example of a patch_id. 104945-02 is also an example of a patchid in 104945-02.jar.


Note - The use of the -M with .jar files is deprecated.


Note that patchadd does not require a list of patches. Among a collection of patches—residing in a directory, specified in a list, or entered on a command line—patchadd performs validity and dependency checking. Specifically, the command does the following:

With the “Zones Parallel Patching” feature, patches can be applied to zones in parallel. After a patch is installed successfully in the global zone, the patch installation software will start a number of processes whose task is to apply patches to zones. The number of processes to be started would be determined by the num_proc parameter in the configuration file /etc/patch/pdo.conf.

The number of processes to be started is determined in the following order:

  1. The value of the num_proc parameter. Setting this to 1 retains the current behavior of the patch system.

  2. The number of online CPUs in the system.

The upper bound is the number of configured Solaris zones.

Most users will find the easiest way to specify a source for patchadd is to specify only a patch_location containing a set of patches.

Destinations

By default, patchadd applies a patch to the specified destination. If no destination is specified, then the current system (the one with its root filesystem mounted at /) is assumed to be the destination for the patch. You can specify a destination in the following ways:

-C net_install_image

Patches the files located on the miniroot on a Net Install Image created by setup_install_server. Specify net_install_image as the absolute path name to a Solaris 8 or compatible version boot directory. See EXAMPLES.

You should use the -C option only to install patches that are recommended for installation to the miniroot. Patches that are recommended for installation to the miniroot usually include install-related patches such as package commands, and Sun install and patch installation tools. If you apply too many patches to the miniroot it can grow too large to fit into memory during a net installation of Solaris. Use the -B option and the -C option together so the miniroot does not get too large. See -B, above.

Note that in the current release and in certain versions of Solaris 10, the miniroot is compressed. To determine whether the miniroot is compressed on your system, look for a file called sparc.miniroot or x86.miniroot under /boot, on the boot medium. Before you can patch a compressed miniroot, you must perform certains steps. See “Patching a Compressed Miniroot” below.

-R client_root_path

Locates all patch files generated by patchadd under the directory client_root_path. client_root_path is the directory that contains the bootable root of a client from the server's perspective. Specify client_root_path as the absolute path name to the beginning of the directory tree under which all patch files generated by patchadd are to be located. -R cannot be specified with the -S option. See NOTES.


Note - The root file system of any non-global zones must not be referenced with the -R option. Doing so might damage the global zone's file system, might compromise the security of the global zone, and might damage the non-global zone's file system. See zones(5).


-S service

Specifies an alternate service (for example, Solaris_8). This service is part of the server and client model, and can only be used from the server's console. Servers can contain shared /usr file systems that are created by smosservice(1M). These service areas can then be made available to the clients they serve. -S cannot be specified with the -R option. See NOTES.

Patching a Compressed Miniroot

The Solaris operating system uses a compressed miniroot. The compressed miniroot was adopted first in Solaris for x86 and then in Solaris for SPARC over the course of Solaris 10 update releases. See below for an easy way to determine whether your Solaris system uses a compressed miniroot.

To patch a system with a compressed miniroot (full or partial), you must unpack and then repack the miniroot before and after running patchadd with the -C destination specifier. Use the procedure shown below and accompanying example commands.

  1. Unpack the compressed miniroot:

    # /boot/solaris/bin/root_archive unpackmedia \
    /export/home/altuser/testdir /export/home/altuser/mr
  2. Run patchadd with -C to patch the miniroot:

    # patchadd -C /export/home/altuser/mr \
    /var/sadm/spool/104945-02
  3. Repack the miniroot:

    # /boot/solaris/bin/root_archive packmedia \
    /export/home/altuser/testdir /export/home/altuser/mr

At this point, you can use setup_install_server(1M) to install the patched miniroot on an install server. See root_archive(1M) for a description of that command.

To determine whether a Solaris image uses a compressed miniroot, check for the presence of either an x86.miniroot or sparc.miniroot file under /boot on the boot medium.

Interaction of -G and pkginfo Variable in Zones

The following list specifies the interaction between the -G option and the SUNW_PKG_ALLZONES variable (see pkginfo(4)) when adding a patch in global and local (non-global) zones.

global zone, -G specified

If any packages have SUNW_PKG_ALLZONES set to true: Error; nothing changes.

If no packages have SUNW_PKG_ALLZONES set to true: Apply patch to package(s) in global zone only.

global zone, -G not specified

If any packages have SUNW_PKG_ALLZONES set to true: Apply patch to appropriate package(s) in all zones.

If no packages have SUNW_PKG_ALLZONES set to true: Apply patch to appropriate package(s) in all zones.

local zone, -G specified or not specified

If any packages have SUNW_PKG_ALLZONES set to true: Error; nothing changes.

If no packages have SUNW_PKG_ALLZONES set to true: Apply patch package(s) in local zone only.

KEYSTORE LOCATIONS

See the section KEYSTORE LOCATIONS in the pkgadd(1M) man page for details.

KEYSTORE AND CERTIFICATE FORMATS

See the section KEYSTORE AND CERTIFICATE FORMATS in the pkgadd(1M) man page for details.

Examples

The examples in this section are all relative to the /usr/sbin directory.

Example 1 Installing a Patch to a Standalone Machine

The following example installs a patch to a standalone machine:

example# patchadd /var/sadm/spool/104945-02

Example 2 Installing a Patch to a Client From the Server's Console

The following example installs a patch to a client from the server's console:

example# patchadd -R /export/root/client1  /var/sadm/spool/104945-02

Example 3 Installing a Patch to a Service From the Server's Console

The following example installs a patch to a service from the server's console:

example# patchadd -S Solaris_8 /var/sadm/spool/104945-02

Example 4 Installing Multiple Patches in a Single Invocation

The following example installs multiple patches in a single patchadd invocation:

example# patchadd -M /var/sadm/spool 104945-02 104946-02 102345-02

Example 5 Installing Multiple Patches Specifying List of Patches to Install

The following example installs multiple patches specifying a file with the list of patches to install:

example# patchadd -M /var/sadm/spool patchlist

Example 6 Installing Multiple Patches to a Client and Saving the Backout Data

The following example installs multiple patches to a client and saves the backout data to a directory other than the default:

example# patchadd -M /var/sadm/spool -R /export/root/client1 \
     -B /export/backoutrepository 104945-02 104946-02 102345-02

Example 7 Installing a Patch to a Solaris 8 or Compatible Version Net Install Image

The following example installs a patch to a Solaris 8 or compatible version Net Install Image:

example# patchadd -C /export/Solaris_8/Tools/Boot \
    /var/sadm/spool/104945-02

Example 8 Installing a Patch to a Compressed Miniroot

The following example installs a patch to a compressed miniroot, such as one finds on a Solaris x86 machine that supports GRUB–style booting. This example assumes that /export/Solaris_11/Tools/Boot contains the unpacked miniroot. After applying the patch, the miniroot needs to be repacked

example# patchadd -C /export/Solaris_11/Tools/Boot \
/var/sadm/spool/104945-02

See “Patching a Compressed Miniroot,” above, for information on Solaris versions that use a compressed miniroot.

Example 9 Installing a Patch to an Uncompressed Miniroot

The following example installs a patch to a miniroot on a Solaris machine that does not have a compressed miniroot.

example# patchadd -C /export/Solaris_9/Tools/Boot \
/var/sadm/spool/104945-02

See “Patching a Compressed Miniroot,” above, for information on Solaris versions that use a compressed miniroot.

Example 10 Displaying the Patches Installed on a Client

The following example displays the patches installed on a client:

example# patchadd -R /export/root/client1 -p

Note the caveat on the use of the -R option in the description of that option, above.

Example 11 Installing a Digitally Signed Set of Patches

The following example installs multiple patches, some of which have been signed, using the supplied keystore, password, and HTTP proxy.

example# patchadd -k /etc/mycerts -P pass:abcd -x webcache.eng:8080 \
-M http://www.sun.com/solaris/patches/latest 101223-02 102323-02

Files

One configuration file of note:

/etc/patch/pdo.conf

Patch configuration file. Can be used to configure “Zones Parallel Patching” feature.

Exit Status

The following exit values are returned:

0

Successful completion.

>0

An error occurred.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
SUNWswmt, SUNWcsu
Interface Stability
Evolving

See Also

cpio(1), pkginfo(1), patchrm(1M), pkgadd(1M), pkgadm(1M), pkgchk(1M), pkgrm(1M), setup_install_server(1M), smpatch(1M), showrev(1M), pdo.conf(4), pkginfo(4), attributes(5), grub(5), zones(5)

Diagnostics

The following messages might help in determining some of the most common problems associated with installing a patch.

Patch Installation errors

Message
The prepatch script exited with return code retcode.
patchadd is terminating.
Explanation and Recommended Action

The prepatch script supplied with the patch exited with a return code other than 0. Run a script trace of the prepatch script and find out why the prepatch had a bad return code. Add the -x option to the first line of the prepatch script to fix the problem and run patchadd again.

Message
The signature on patch patch_id was unable to be verified.
patchadd is terminating.
Explanation and Recommended Action

The digital signature on a patch was unable to be verified given the keystore in use and the signature on the patch. Check the keystore to make sure it has the requisite trust anchor(s) required to validate the signature on the package and that the package has not been tampered with.

Message
The postpatch script exited with return code retcode.
Backing out patch.
Explanation and Recommended Action

The postpatch script provided with the patch exited with an error code other than 0. This script is mostly used to cleanup files (that is, when a package is known to have ownership or permission problems) attributes that do not correspond to the patch package's objects. After the user has noted all validation errors and taken the appropriate action for each one, the user should re-run patchadd using the -u (unconditional) option. This time, the patch installation will ignore validation errors and install the patch anyway.

Message
Insufficient space in /var/sadm/patch to save old files.
(For 2.4 systems and previous)
Explanation and Recommended Action

There is insufficient space in the /var/sadm/patch directory to save old files. The user has three options for handling this problem: Use the -B option while invoking patchadd. This option will direct patchadd to: save the backout data to the user specified file system, generate additional disk space by deleting unneeded files, or override the saving of the old files by using the -d (do not save) option when running patchadd.

If the user elects not to save the old versions of the files to be patched, patchrm cannot be used. One way to regain space on a system is to remove the save area for previously applied patches. Once the user has decided that it is unlikely that a patch will be backed out, the user can remove the files that were saved by patchadd. The following commands should be executed to remove the saved files for patchpatch_id:

cd /var/sadm/patch/patch_id
rm -r save/*
rm .oldfilessaved

After these commands have been executed, patch patch_id can no longer be backed out.

Message
Insufficient space in /var/sadm/pkg/PKG/save to save old files.
(For 2.5 systems and later)
 
Explanation and Recommended Action

There is insufficient space in the /var/sadm/pkg/PKG/save directory to save old files. The user has three options for handling this problem: (1) Use the -B option while invoking patchadd. This option will direct patchadd to save the backout data to the user specified file system. (See synopsis above.) (2) Generate additional disk space by deleting unneeded files, or (3) override the saving of the old files by using the -d (do not save) option when running patchadd. However, if the user elects not to save the old versions of the files to be patched, patchrm cannot be used. One way to regain space on a system is to remove the save area for previously applied patches. Once the user has decided that it is unlikely that a patch will be backed out, the user can remove the files that were saved by patchadd. The following commands should be executed to remove the saved files for patch patch_id:

cd /var/sadm/pkg/pkgabbrev/save
rm -r patch_id

After these commands have been executed, patch patch_id can no longer be backed out.

Message
Save of old files failed.
(For 2.4 systems and previous)
Explanation and Recommended Action

Before applying the patch, the patch installation script uses cpio to save the old versions of the files to be patched. This error message means that the cpio failed. The output of the cpio would have been preceded this message. The user should take the appropriate action to correct the cpio failure. A common reason for failure will be insufficient disk space to save the old versions of the files. The user has two options for handling insufficient disk space: (1) generate additional disk space by deleting unneeded files, or (2) override the saving of the old files by using the -d option when running patchadd. However if the user elects not to save the old versions of the files to be patched, the patch cannot be backed out.

Message
Pkgadd of pkgname package failed with error code code.
See /tmp/log.patch_id for reason for failure.
 
Explanation and Recommended Action

The installation of one of the patch packages failed. patchadd will backout the patch to leave the system in its pre-patched state. See the log file for the reason for failure. Correct the problem and reapply the patch.

Message
Pkgadd of pkgname package failed with error code code.
Will not backout patch...patch re-installation.
Warning: The system may be in an unstable state!
See /tmp/log.patch_id for reason for failure.
Explanation and Recommended Action

The installation of one of the patch packages failed. patchadd will not backout the patch. You may manually backout the patch using patchrm, then re-apply the entire patch. Look in the log file for the reason pkgadd failed. Correct the problem and re-apply the patch.

Message
patchadd is unable to find the INST_RELEASE file. This file
must be present for patchadd to function correctly.
Explanation and Recommended Action

The INST_RELEASE file is missing from the system. This file is created during either initial installation or during an update.

Message
A previous installation of patch patch_id was invoked
that saved files that were to be patched. Since files
were saved, you must run this instance of patchadd
without the -d option.
Explanation and Recommended Action

If a patch was previously installed without using the -d option, then the re-installation attempt must also be invoked without the -d option. Execute patchadd without the -d option.

Message
A previous installation of patch patch_id was invoked
with the -d option. (i.e. Do not save files that would
be patched) Therefore, this invocation of patchadd
must also be run with the -d option.
Explanation and Recommended Action

If a patch was previously installed using the -d option, then the re-installation attempt must also be invoked with the-d option. Execute patchadd with the -d' option.

Message
Illegal character found during parsing. Read the man page 
for pdo config file.
Explanation and Recommended Action

The /etc/patch/pdo.conf follows a specific layout. Each entry in this file should conform to this layout. See pdo.conf(4).

Diagnostic Reference

The patch installation messages listed below are not necessarily considered errors, as indicated in the explanations given. These messages are, however, recorded in the patch installation log for diagnostic reference.

Message
Package not patched:
PKG=SUNxxxx
Original package not installed
Explanation and Recommended Action

One of the components of the patch would have patched a package that is not installed on your system. This is not necessarily an error. A patch may fix a related bug for several packages.

For example, suppose a patch fixes a bug in both the online-backup and fddi packages. If you had online-backup installed but didn't have fddi installed, you would get the message :

Package not patched:
PKG=SUNWbf
Original package not installed 

This message only indicates an error if you thought the package was installed on your system. If this is the case, take the necessary action to install the package, backout the patch (if it installed other packages) and re-install the patch.

Message
Package not patched:
PKG=SUNxxx
ARCH=xxxxxxx
VERSION=xxxxxxx
Architecture mismatch
Explanation and Recommended Action

One of the components of the patch would have patched a package for an architecture different from your system. This is not necessarily an error. Any patch to one of the architecture-specific packages might contain one element for each of the possible architectures. For example, assume you are running on a sun4u. If you were to install a patch to package SUNWcar, you would see the following (or similar) messages:

Package not patched:
PKG=SUNWcar
ARCH=sparc.sun4c
VERSION=11.5.0,REV=2.0.18
Architecture mismatch

Package not patched:
PKG=SUNWcar
ARCH=sparc.sun4u
VERSION=11.5.0,REV=2.0.18
Architecture mismatch

Package not patched:
PKG=SUNWcar
ARCH=sparc.sun4e
VERSION=11.5.0,REV=2.0.18

Package not patched:
PKG=SUNWcar
ARCH=sparc.sun4
VERSION=11.5.0,REV=2.0.18
Architecture mismatch

These messages indicate an error condition only if patchadd does not correctly recognize your architecture.

Message
Package not patched:
PKG=SUNxxxx
ARCH=xxxx
VERSION=xxxxxxx
Version mismatch
Explanation and Recommended Action

The version of software to which the patch is applied is not installed on your system. For example, if you were running Solaris 8, and you tried to install a patch against Solaris 9, you would see the following (or similar) message:

Package not patched:
PKG=SUNWcsu
ARCH=sparc
VERSION=10.0.2
Version mismatch

This message does not necessarily indicate an error. If the version mismatch was for a package you needed patched, either get the correct patch version or install the correct package version. Then backout the patch (if necessary) and reapply.

Message
Re-installing Patch.
Explanation and Recommended Action

The patch has already been applied, but there is at least one package in the patch that could be added. For example, if you applied a patch that had both Openwindows and Answerbook components, but your system did not have Answerbook installed, the Answerbook parts of the patch would not have been applied. If, at a later time, you pkgadd Answerbook, you could re-apply the patch, and the Answerbook components of the patch would be applied to the system.

Message
patchadd Interrupted. 
patchadd is terminating.
Explanation and Recommended Action

patchadd was interrupted during execution (usually through pressing CTRL-c). patchadd will clean up its working files and exit.

Message
patchadd Interrupted.
Backing out Patch...
Explanation and Recommended Action

patchadd was interrupted during execution (usually through pressing CTRL-c). patchadd will clean up its working files, backout the patch, and exit.

Message
Warning: Cannot open configuration file %s for reading. Using 
default serial patching behavior
Explanation and Recommended Action

The /etc/patch/pdo.conf file is missing from the system. This file is typically created during an initial install or update or by applying the patch for the “Zones Parallel Patching” feature. If the file is not present, the default, one-at-time behavior of adding or removing patches from a zoned system would ensue.

Notes

To successfully install a patch to a client or server, patchadd must be issued twice, once with the -R option and once with the -S option. This guarantees that the patch is installed to both the /usr and root partitions. This is necessary if there are both /usr and root packages in the patch.

pkgadd is invoked by patchadd and executes the installation scripts in the pkg/install directory. The checkinstall script is executed with its ownership set to user install, if there is no user install then pkgadd executes the checkinstall script as noaccess. The SVR4 ABI states that the checkinstall shall only be used as an information gathering script. If the permissions for the checkinstall script are changed to something other than the initial settings, pkgadd may not be able to open the file for reading, thus causing the patch installation to abort with the following error:

pkgadd: ERROR: checkinstall script did not complete successfully.

The permission for the checkinstall script should not be changed. The noaccess user should have access rights to the directory containing the patch. Contents of log file for a successfull installation: patchadd redirects pkgadd's output to the patch installation log file. For a successfull installation, pkgadd will produce the following message that gets inserted into the log file:

This appears to be an attempt to install the same architecture
and version of a package which is already installed. This
installation will attempt to overwrite this package.
This message does not indicate a failure, it represents the
correct behavior by pkgadd when a patch installs correctly.

This message does not indicate a failure, it represents the correct behavior by pkgadd when a patch installs correctly.

On client server machines the patch package is not applied to existing clients or to the client root template space. Therefore, when appropriate, all client machines will need the patch applied directly using this same patchadd method on the client. See instructions above for applying patches to a client. A bug affecting a package utility (for example, pkgadd, pkgrm, pkgchk) could affect the reliability of patchadd or patchrm, which use package utilities to install and backout the patch package. It is recommended that any patch that fixes package utility problems be reviewed and, if necessary, applied before other patches are applied. Existing patches are:

Solaris 2.5.1 Sparc Platform Edition:

104578

Solaris 2.5.1 Intel Platform Edition:

104579

Solaris 2.6 Sparc Platform Edition:

106292

Solaris 2.6 Intel Platform Edition:

106293

Warnings

Certain patches are classified as “deferred activation” patches (sometimes with initial capitals, as “Deferred Activation” patches). Under conditions indicated below, such patches require special treatment. A patch's README file specifies whether that patch is of the deferred activation variety. (Search on “Deferred Activation” in the README file.)

If you are installing or removing a patch that uses deferred activation patching, you must check on the following: