1833040 Members
2903 Online
110049 Solutions
New Discussion

Patches and Dependencies

 
SOLVED
Go to solution
Arne Hillestad
Occasional Contributor

Patches and Dependencies

Can anyone advice me?

Am about to install a Patch that require PHCO_13411 which is superseded by PHCO_23651, depending on PHKL_17869.

PHKL_17869 is superseded by PHKL_18543 which is depending on PHCO_13411.

Where do I start? How to deal with these type of problems? Is the date of posting of importance here?
3 REPLIES 3
Santosh Nair_1
Honored Contributor

Re: Patches and Dependencies

You should put on both PHCO_23651 and PHKL_18543 at the same time. You can do this by creating a patch depot:

download both patches
unarchive the patches in say /tmp:

sh PHCO_23651
sh

copy the patches to a new depot:

swcopy -s /tmp/PHCO_23651.depot \* @ /tmp/patch.depot
swcopy -s /tmp/PHKL_18543.depot \* @ /tmp/patch.depot

install the patches from the depot

swinstall -s /tmp/patch.depot

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Stefan Farrelly
Honored Contributor

Re: Patches and Dependencies


If youre unsure about which patch needs what as a dependency and what superceedes what, copy all the possible patches into the same depot, and when you install the patch from there it will automatically pull in any/all dependencies and take into account patches which are superceeded. If any are missing or the dependencies/supercession wrong, it will tell you, and you can correct it then retry.

As long as you use the patch_match_target option on swinstall it will work it out for you and save you the worry!
Im from Palmerston North, New Zealand, but somehow ended up in London...
linuxfan
Honored Contributor
Solution

Re: Patches and Dependencies

Hi,


I would highly recommend reading the white paper "Patch Management Guide for HP-UX 11.x"
http://docs.hp.com/hpux/pdf/5967-3578.pdf

As far as patch dependencies are concerned, in your case
PHCO_13411 --> PHCO_23651
PHCO_23651 <=> PHKL_17869
PHKL_17869 --> PHKL_18543
PHKL_18543 <=> PHCO_13411 PHKL_17038 PHKL_19169
PHKL_17038 --> PHKL_25188
PHKL_19169 --> PHKL_24027

--> indicates superseded by
<=> dependencies


Now in this case PHKL_18543 is a Mega Patch on which lot of newer patches have a dependency on, so you might need it anyway.

To suffice the dependency needs, you want to download all the patches (PHCO_23651, PHKL_18543, PHKL_25188 PHKL_24027) into a temp directory.

for i in PH*
do
sh $i
done

(This will unshar the patch files and create a patch.depot and patch.text files)

Now to minimize the number of reboots you want to combine them into a single depot.

for i in PH*.depot
do
swcopy -s $i \* @ /path/mypatch.depot
done

Now to install the patches, just do
swinstall -s /path/mypatch.depot

This way you can install all the patches in one shot and minimize the number of reboots to just one.

Again i would highly recommend reading the guide for future needs.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates