Operating System - HP-UX
1833007 Members
2436 Online
110048 Solutions
New Discussion

Re: How to apply multiple patches in one go

 
yc_2
Regular Advisor

How to apply multiple patches in one go

Hi,

I had down loaded multiple patches from HP side. Most of the patches required a reboot. Is there a way of applying all patches in one go ?

Patches are PHSS, PHKL, PHCO and jre


Thanks in advance,
YC
3 REPLIES 3
RikTytgat
Honored Contributor

Re: How to apply multiple patches in one go

Hi,

Yes there is.

Start the swinstall GUI.
Select source (Actions -> Change Source ...)and target (Actions -> Change Target...).

Select 'Actions -> Manage patch selections...'

Check the two checkboxes and continue.

Swinstall wil determine what patches match the target and select only those. The reboot will: be done at the end.

Hope this helps,
Rik


Tommy Palo
Trusted Contributor

Re: How to apply multiple patches in one go

Hi,
Yes, you can do like this:

First you unpack all the shell archives and then you create a bundle.
This is a script I use for this purpose. Run it in the "download" dir.

#!/usr/bin/ksh

PHROOT=/hpdepot/Patches/10.x (Substitute with your own path)

if [ `whoami` != 'root' ]; then
echo "Must be run as root !"
exit
fi

for file in PH*_?????
do
sh $file
done

read -r BUNDLE?"Enter name of new bundle: "

BUNDLE=$PHROOT/$BUNDLE
mkdir $BUNDLE

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


Keep it simple
Dan Hetzel
Honored Contributor

Re: How to apply multiple patches in one go

Hi,

Although Rik's solution will work, you should create a depot as Tommy suggested if you have more than one server to patch.
This will make life a lot easier in the future.

Make sure when applying patches that you select the 'match_target' option.

Regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com