1833776 Members
2386 Online
110063 Solutions
New Discussion

Re: Patches

 
Mike Rightmire
Frequent Advisor

Patches

I am running HPUX 11.0. I went to ITRC on the web and allowed it to determine all the recommended and latest patches my system needed based on the .fs file.

I was able to successfully crteate a directory with ALL the recommended patches as deopt files, however I cannot find a way to install ALL the patches in one fell swoop. I could install them each individually, however that would be very cumbersome (200+ patches.)

When I use SAM software manager and attempt to point it only to the directory name, it says "no depot software located here."...however if I point it directly to a depot it sees the patch fine and can install it.

Am I going to have to create a script to call each patch.depot separately with swinstall?

HELP! :-)
"If we treated each person we met as if they were carrying an unspeakable burden, we might almost treat each other as we should." Dale Carnegie
3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor

Re: Patches

Check this thread out.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x8200a24d9abcd4118fef0090279cd0f9,00.html


-Sri
You may be disappointed if you fail, but you are doomed if you don't try
linuxfan
Honored Contributor

Re: Patches

Hi Mike,

I am not sure if you are familiar with how patch management works. This document should give you lot of information

http://docs.hp.com/hpux/pdf/5967-3578.pdf

But lets say you downloaded all the patches from the HP site (including the dependency patches)
to /tmp or any other directory where you have space available

cd /tmp
for i `ls -1 PH*`
do
sh $i
swcopy -s /tmp/$i.depot \* @ /tmp/mypatch.depot
done

what this does is unshars the patch files and copies individual patches into one custome depot called mypatch.depot. Now you have to make sure you have enough space in /tmp or any other filesystem you choose.

swcopy is very picky, so if you don't have all your filesystems mounted, it will complain, in which case you may have to modify the earlier swcopy with
swcopy -x mount_all_filesystems=false -x enforce_dependencies=false -s /tmp/$i.depot \* @ /tmp/mypatch.depot

There are lots of other options to swcopy, look at the man pages.

once you build your custom depot you can install the patches with

swinstall -s /tmp/mypatch.depot

-HTH
Ramesh

They think they know but don't. At least I know I don't know - Socrates
Sanjay_6
Honored Contributor

Re: Patches

Hi Mike,

Once you have done the patch analysis on hp web-site and created your custom bundle, they place a file server_name.sh in the outgoing directory which you download, do "sh server_name.sh". It creates some files. Then you run make_depot using "sh make_depot", it will check for the patches required, currently available in the present directory, download the required patches from hp itrc web-site, create a bundle and will place all you patches in the file PATCHES.depot in the directory from where you run make_depot.

Now to install all the patches in one go, when you specify the path where you depot is available you point to this file "PATCHES.depot". So if PATCHES.depot is available as /temp/hp_patch/PATCHES.depot, then in the swinstall screen refer to the full path with the filename PATCHES.depot for the source. Mention source as /temp/hp_patch/PATCHES.depot It will give you the complete list of patches, which if you want you can select at one go and install.

Hope this helps

Thanks