Operating System - HP-UX
1844033 Members
2591 Online
110226 Solutions
New Discussion

Multiple patch installation

 
Krzysztof Grudzinski
Occasional Advisor

Multiple patch installation

I have to install following patches:

PHCO_27632
PHCO_27671
PHCO_27740
PHSS_26558
PHSS_26560
PHSS_27942
PHSS_28212
PHSS_28213
PHSS_28303
PHSS_28371
PHSS_28559


How to install all of them not one by one. According to patch installation procedure installin each patch separately the system will reboot each time patch installation completed. Is it safe to install all patches with autoreboot=false and after last one completed reboot machine manually?

note: The patches are not included to any cumulative patch.


thx,
Chris
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: Multiple patch installation

Chris,

Use swcopy to copy each of the patches into a depot (I use the default /var/spool/sw), then run swinstall interactively and you'll be able to select all the patches at one time.


Pete


Pete
Mark Grant
Honored Contributor

Re: Multiple patch installation

You can copy them into one depot using "swcopy" and then install from that depot.

Never preceed any demonstration with anything more predictive than "watch this"
Helen French
Honored Contributor

Re: Multiple patch installation

Krzysztof Grudzinski
Occasional Advisor

Re: Multiple patch installation

I am tried to "swcopy" them but I got following error:

â â There is currently no depot software on host "hpnode2" at location â â
â â â â â "/var/tmp/patches". Make sure that an absolute pathname is specified â â â â
â â â for location (beginning with "/").


In the directory there is:

[hpnode2] /var/tmp/patches# ls -la *.depot
-rw-r--r-- 1 root sys 2191360 Nov 19 2002 PHCO_27632.depot
-rw-r--r-- 1 root sys 6963200 Sep 20 2002 PHCO_27671.depot
-rw-r--r-- 1 root sys 24371200 Nov 14 2002 PHCO_27740.depot
-rw-r--r-- 1 root sys 686080 Sep 11 2002 PHSS_26558.depot
-rw-r--r-- 1 root sys 23418880 Sep 11 2002 PHSS_26560.depot
-rw-r--r-- 1 root sys 29696000 Oct 1 2002 PHSS_27942.depot
-rw-r--r-- 1 root sys 13056000 Dec 6 2002 PHSS_28212.depot
-rw-r--r-- 1 root sys 8683520 Dec 2 2002 PHSS_28213.depot
-rw-r--r-- 1 root sys 7157760 Feb 18 2003 PHSS_28303.depot
-rw-r--r-- 1 root sys 28487680 Jan 24 2003 PHSS_28371.depot
-rw-r--r-- 1 root sys 62289920 Feb 20 2003 PHSS_28559.d
Pete Randall
Outstanding Contributor

Re: Multiple patch installation

Chris,

Try this:

for i in PH*.depot
do
swcopy -s ${PWD}/$i \* @ /var/spool/sw
done

That should copy all of them into /var/spool/sw!


Pete



Pete
RolandH
Honored Contributor

Re: Multiple patch installation

See the reply I have given in this post.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=214076

A big advantage is you can give the depot name. So you bundle the patches and give it a logical name why you have installed the patches. ie.
NFS_Patches 1.00 newest NFS Patches Sep.2003

HTH
Roland

BTW: See the option from the script
Sometimes you lose and sometimes the others win
Steven E. Protter
Exalted Contributor

Re: Multiple patch installation

attaching a script called depmake.

It does the same thing Pete's code does.

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
Steven E. Protter
Exalted Contributor

Re: Multiple patch installation

Actually, duh, it does not do exactly the same thing Pete's code does. It creates a free standing depot.

Here is an alternate version that can let you roll non-patch depots into the depot.

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
GK_5
Regular Advisor

Re: Multiple patch installation

When you download the patches from ITRC website, if you select all patches, it will create a depot for you. It will also give a readme file with instruction to install the depot.

-GK-
IT is great!