Operating System - HP-UX
1751710 Members
4909 Online
108781 Solutions
New Discussion юеВ

Re: HPUX patch dependency check

 
SOLVED
Go to solution
GK_5
Regular Advisor

HPUX patch dependency check

Hi! Is there a way to check if I have all dependent patches installed on the server to install a patch?
Thanks
IT is great!
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: HPUX patch dependency check

What I do is manually check all the dependencies listed in the patch document against the list provided by running "swlist -l product |grep PH".


Pete


Pete
GK_5
Regular Advisor

Re: HPUX patch dependency check

Pete,

That is what I'm doing. But sometime dependent patches are also dependent on other patches. It's mess to go like this on so many servers.
IT is great!
Pete Randall
Outstanding Contributor
Solution

Re: HPUX patch dependency check

The other option is to actually start the install process and let it go through the analysis phase which will tell you if you're missing anything. If so, just stop at the point, download the missing patches and swcopy them into the same depot, and restart the install.


Pete


Pete
Hai Nguyen_1
Honored Contributor

Re: HPUX patch dependency check

GK,

Another approach is to run swinstall with the preview option (-p)for the new patch to see if all the prerequisite patches have been applied. Many times, this way saved me lots of time especially if the list of pre-requisite is quite long.

Hai
Robert Gamble
Respected Contributor

Re: HPUX patch dependency check

GK_5
Regular Advisor

Re: HPUX patch dependency check

Thanks Pete, Hai,

Let me try this and see if it works any better.
IT is great!
James R. Ferguson
Acclaimed Contributor

Re: HPUX patch dependency check

HI:

You can run 'swinstall' in a preview mode, which does the analysis (dependency analysis) phase but skips the execution phase.

# swinstall -p -s -x enforce_dependencies=true ...

Regards!

...JRF...
Elena Leontieva
Esteemed Contributor

Re: HPUX patch dependency check

You may also download a depot from ITRC that is created for you if a patch that you select has dependencies. At install of this depot, swinstall will skip the patches that you already have on the server. Then remove this depot by running swremove -d to free up some disk space.

Elena.
Steven E. Protter
Exalted Contributor

Re: HPUX patch dependency check

I have a different method.

itrc.hp.com
individual patches
hpux

search by patch id

select for download

This produces a list with dependencies indented.

Depending on the importance of the patch I do one of two things.

1) I download the whole thing as patches.zip and install after creating a depot with the following command line: swinstall -x autoreboot=true -x reinstall=false -s /tmp/depot.depot \*

The reinstall=false prevents re-installation.

2) If the patches are big, I check the dependencies and remove those that are isntalled already with the swlist -l product | grep -i PH##_#####

removal can be at the web site or after download depending on my mood and how much of a hurry I'm in.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com