Operating System - HP-UX
1854812 Members
26988 Online
104103 Solutions
New Discussion

multiple patches installation

 
SOLVED
Go to solution
Antonio Cardoso_1
Trusted Contributor

multiple patches installation

Hi,
I'm about to install a set of patches (recommended by a run of hpjconfig on a server).
Several of these patches require a reboot, and there are several crossed dependencies mentionned in the patch report.
Is it correct to install all patches at once using something like
"swinstall -s -x... -x autoreboot=true '*'"

or is it necessary to install each of them individually ?

thank's
10 REPLIES 10
Franky_1
Respected Contributor
Solution

Re: multiple patches installation

Hi Antonio,

1.Copy your patches into a separate directory.
2. Unshar the patches by typing these line:
#cd /patch_directory
#for i in PH*
do
sh $i
done
3.Combine all these separate depots into one depot.
To do this, use the swcopy command. First, create the directory to store the patches:
#mkdir /tmp/patch_depot (or where ever you wish)
4.Now take the patch depots and copy them into the target depot by typing these lines:
#for i in PH*.depot
do
swcopy -x enforce_dependencies=false -x mount_all_filessystems=false -s ${PWD} /$i \* @ /tmp/patch_depot
done
5. Check /var/adm/sw/swagent.log and swcopy.log if you recieve any errors.
6. To verify the contents of the depot:
#swlist -d @ /tmp/patch_depot
6. Now install them
#swinstall -s /tmp/patch_depot

Regards

Franky
Don't worry be happy
MarkSyder
Honored Contributor

Re: multiple patches installation

IF two or more patches depend on each other it's best to create a bundle using swcopy.

Doing them individually may cause your system to fail to boot.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
John Carr_2
Honored Contributor

Re: multiple patches installation

Hi

if you have individual patches not already i a batch depot you need to swcopy them into a depot otherwise you will reboot for each patch thats requires a reboot rather than one reboot.

John.
John Carr_2
Honored Contributor

Re: multiple patches installation

opps meant a batch bundle not a batch depot

;-) John.
Isralyn Manalac_1
Regular Advisor

Re: multiple patches installation

If you have dependencies among your patches to be installed, it's best that they be put in a bundle.

Regards,

ira
Antonio Cardoso_1
Trusted Contributor

Re: multiple patches installation

OK,
I received the patches from ITRC download center, and created a depot using the provided script create_depot_hp-ux_11.
The result is, as suggested in your responses, a bundle that contains all what I need.

I tried the installation as mentionned above, and all is OK,

thanks!
antonio.
Franky_1
Respected Contributor

Re: multiple patches installation

Hi Antonio,

if all is ok and we could help you then would you mind assining points ?

Regards

Franky
Don't worry be happy
John Carr_2
Honored Contributor

Re: multiple patches installation

Antonio

it is polite to assign points to people who given up there time in a non paid capacity to help others Franky gave you a detailed explanation and deserves the points. I see you have not assigned points to anyone since you became a memeber not a good way of getting continued support in the future.

John.
Antonio Cardoso_1
Trusted Contributor

Re: multiple patches installation

OK,
I apologize for that impoliteness (indeed, I hadn't read about the points system, and just ignored it).
So I just will repair this right now!
thank's again for your answers.
antonio.

Ted Buis
Honored Contributor

Re: multiple patches installation

In addition I would recommend reading the instructions for all patches. I saw a CDE patch that required stopping CDE first before installing the patch. This is independent from issues of resolving dependencies.
Mom 6