1845939 Members
5122 Online
110250 Solutions
New Discussion

patch installation

 
SOLVED
Go to solution
Theo Wawers
Occasional Contributor

patch installation

Hi there,

how do I've to set up swinstall to accept several individual patches (*.depot files) at a time?
I'd like to avoid to have to reboot several times.
OS: HP-UX 11.00

Cheers,
Theo
1 REPLY 1
Alex Glennie
Honored Contributor
Solution

Re: patch installation

If you have several individual patches which you need to install
it is useful to package them all together into one patch depot.
This way you do not need to run swinstall multiple
times and if patches require a reboot the system will reboot only once. This is
also important to resolve patch dependencies properly.

RESOLUTION

Example of creating a SD-UX depot containing 3 different patches
PHxx_A,
PHxx_B and
PHxx_C:

Retrieve the patches for instance from a patch server or web site :

mkdir /tmp/patches
cd /tmp/patches

Copy patches via ftp, rcp ... into this directory.

ls

PHxx_A
PHxx_B
PHxx_C

Unpack all patches :

sh PHxx_A
sh PHxx_B
sh PHxx_C


This can be done in one operation with the following commands:

# cd /tmp
# for i in PH*
> do
> sh $i
> done
#


Create a patch depot :

mkdir /tmp/patch_depot
swcopy -v -s /tmp/patches/PHxx_A.depot PHxx_A @ /tmp/patch_depot
swcopy -v -s /tmp/patches/PHxx_B.depot PHxx_B @ /tmp/patch_depot
swcopy -v -s /tmp/patches/PHxx_C.depot PHxx_C @ /tmp/patch_depot


This can also be done with the following commands in one operation:

# mkdir /tmp/patch_depot
# for i in PH*.depot
> do
> swcopy -s ${PWD}/$i \* @ /tmp/patch_depot
> done
#

Now call swinstall and specify /tmp/patch_depot as your source.


If you need to copy the depot to a tape use the following command :

swpackage -s /tmp/patch_depot -x target_type=tape -d /dev/rmt/0m "*"