Operating System - HP-UX
1834499 Members
2703 Online
110068 Solutions
New Discussion

Re: How install more than one .depot patch

 
hboo
Frequent Advisor

How install more than one .depot patch

Hello all

I want install 2 .depots patch locate in /tmp/hp directory but I don´t know how...

I made
swinstall -s /tmp/hp/1.depot /tmp/hp/2.depot

and fails...

Somebody can help me please....
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: How install more than one .depot patch

What you want to do is use swcopy to copy both patches to the same depot and then swinstall from that depot.

If the swcommands seem a bit intimidating then just use SAM->Software Management->Copy Software to Depot. You will actually do this twice specifying the PHXX_NNNNN.depot file for the source and selecting a target location for the new depot. When you are done, then run swinstall -s /your_combined_depot location and you will be able to Mark both patches and install then in one session.

When you are all done, examine samlog and you can see all the steps that are done so that you can do it manually in the future. This is actually a good way to learn many of the tasks SAM does for you (e.g. kernel building).
If it ain't broke, I can fix that.
yulianto piyut
Valued Contributor

Re: How install more than one .depot patch

hi,

you can create depot bundle from many of software depot

belows, script to create depot bundle:

for i in /pwd/*.depot
do
swcopy -s $i \* @/tmp/depot
done

-yut-
skt_skt
Honored Contributor

Re: How install more than one .depot patch

"swcopy" is the bes and easy way to do this.

Just trigger the command and it will prompt for rest all
Ralph Grothe
Honored Contributor

Re: How install more than one .depot patch

Just a hint to overcome the at first sight slightly daunting usage difficulties of the swcopy command.
If you download any patch bundle from HPs' patch site (usually as a tgz archive) in it you will find a script whose name begins with "create_depot".
Have a look at it to find a nice example of how to use swcopy to bundle several different patches (though related to each other) into one single depot that will only require one swinstall invocation with only one reboot if PHKL_ or PHNE_ patches requiring this are included.
Madness, thy name is system administration
Emil Velez
Honored Contributor

Re: How install more than one .depot patch


assuming the patches are in the pwd

for i in `ls *.depot`
do
swinstall -s $PWD/$i \*
done

This should install them one at a time. hopefully they are not dependent on each other if so then you need to copy them to a depot

and then install from the depot

for i in `ls *.depot`
do
swcopy -s $PWD/$i \*
done

swinstall -s /var/spool/sw

Then you can select them all and install them