1838642 Members
2175 Online
110128 Solutions
New Discussion

Re: Patching HP-UX 11.11

 
SOLVED
Go to solution
Adrian Sobers2
Super Advisor

Patching HP-UX 11.11

I would like some help on patching HP-UX. I am currently downloading the following depot files:

HWEnable11i_B.11.11.0406.4.depot
GOLDQPK11i_B.11.11.0406.5.depot

Should I install using SAM or using the swinstall
command:

# swinstall

Also, there are some other miscellaneous patches which I also have to install:

PHKL_31003
PHNE_27796
PHNE_28762
PHSS_30448
PHSS_30788
PHSS_30789
PHSS_30871
PHSS_31179

Once I download these individually, is there a command/script I can run to package them into a single depot file, so as to avoid multiple reboots?

Thanks to any help that can be provided.
7 REPLIES 7
RAC_1
Honored Contributor
Solution

Re: Patching HP-UX 11.11

Download all patches. Put them in a dir.

sh "patch_file"
This will create two files for every patch.
txt and depot file.

Now do as follows

for i in `ls -1 /tmp/*.depot`
do
swcopy -s $i \* @ /tmp/patches
done.

This will create single file at /tmp/patches.
Install it - swinstall -s /tmp/patches

Anil
There is no substitute to HARDWORK
Sridhar Bhaskarla
Honored Contributor

Re: Patching HP-UX 11.11

Hi,

Use 'swinstall' CLI or GUI and select the depot paths. It's a pretty neat GUI. Even SAM brings up the same. From command line, you will have to do

swinstall -s /wherever/GOLDQPK11i_xx.depot \*

About the other individual patches, you can club them together in single depot and install them at once. You can use the following procedures.
Put all these patches in one directory say /tmp/patches. Then do

#cd /tmp/patches
#sh PH*
They should create two files per each path like .depot and .txt
Run the following script to put all depot files in one depot.

mkdir /tmp/patches/depot
for PATCH in PH*.depot
do
swcopy -s /tmp/patches/${PATCH}.depot \* @ /tmp/patches/depot
done

#swreg -l depot /tmp/patches/depot

Now point your swinstall to /tmp/patches/depot and you should be able to select all the patches and install them in a single turn.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Adrian Sobers2
Super Advisor

Re: Patching HP-UX 11.11

Thanks!
Adrian Sobers2
Super Advisor

Re: Patching HP-UX 11.11

One last question on this matter. It's about the script.

mkdir /tmp/patches/depot
for PATCH in PH*.depot
do
swcopy -s /tmp/patches/${PATCH}.depot \* @ /tmp/patches/depot
done


Do I put the above in a .sh file and run it from the command prompt or just type it at root prompt > #

Yes I'm a newbie ;)
Sridhar Bhaskarla
Honored Contributor

Re: Patching HP-UX 11.11

Hi,

If you want to put it in a script, then fine. You can do it.. copy the following into a file and run it

mkdir /tmp/patches/depot
for PATCH in /tmp/patches/PH*.depot
do
swcopy -s ${PATCH} \* @ /tmp/patches/depot
done

There was a fat finger in my previous response. Since this is a simple one, I didn't make it fancy.

The above should work.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Adrian Sobers2
Super Advisor

Re: Patching HP-UX 11.11

thanks
Adrian Sobers2
Super Advisor

Re: Patching HP-UX 11.11

none