Operating System - HP-UX
1836596 Members
2076 Online
110102 Solutions
New Discussion

Combining depot files and swinstall them

 
SOLVED
Go to solution
Ferdi Castro
Advisor

Combining depot files and swinstall them

Hi Guys, I have lots of PH* depots patches that i need to install in my system and I want to install them in a single swinstall. Can you advise me how.

I put all individual Depots in /tmp/patch directory.

what i was thinking was swcopy or swpackage...

in the tmp/patch dir there are all the depots...

:/tmp/patch#tar -tvf HPUX-PR13-11.11-Feb2005.tar
-r-- 0/3 92160 Aug 1 23:40 2001 PHCO_24402.depot
-r-- 0/3 1894400 Jan 7 03:48 2002 PHCO_25898.depot
-r-- 0/3 40960 Sep 5 07:54 2003 PHCO_26385.depot
-r-- 0/3 2181120 Nov 19 04:45 2002 PHCO_26466.depot
-r-- 0/3 624640 Jul 29 10:34 2002 PHCO_27020.depot
-r-- 0/3 256000 Oct 24 16:19 2002 PHCO_27958.depot
-r-- 0/3 24432640 Apr 18 00:44 2003 PHCO_28427.depot
-r-- 0/3 81920 Nov 8 16:55 2001 PHKL_25233.depot
-r-- 0/3 215040 Nov 5 04:40 2001 PHKL_25389.depot
-r-- 0/3 51200 Jul 19 13:11 2002 PHKL_27179.depot
-r-- 0/3 491520 May 26 01:49 2004 PHKL_30510.depot
-r-- 0/3 204800 May 26 01:53 2004 PHKL_30511.depot
-r-- 0/3 849920 Jan 25 17:11 2002 PHNE_23465.depot
-r-- 0/3 1945600 Feb 25 10:57 2002 PHNE_24473.depot
-r-- 0/3 358400 Jul 16 09:56 2003 PHNE_24512.depot
-r-- 0/3 2938880 Mar 24 22:06 2003 PHNE_28476.depot
-r-- 0/3 860160 Jun 20 20:55 2003 PHNE_28923.depot
-r-- 0/3 2816000 Dec 11 05:51 2003 PHNE_29887.depot
-r-- 0/3 23418880 Sep 11 06:09 2002 PHSS_26560.depot
-r-- 0/3 60026880 Oct 22 08:47 2002 PHSS_26946.depot

Thanks in advance.....

3 REPLIES 3
Rick Garland
Honored Contributor

Re: Combining depot files and swinstall them

The swcopy command will allow you to create a depot but you will be swcopying each patch into the depot one-by-one.

You could write a script that will loop through the patches and swcopy each patch to the newly created depot.

Pete Randall
Outstanding Contributor
Solution

Re: Combining depot files and swinstall them

Do this:

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

That will gather all your patches into a common location in /var/tmp from which you may then swinstall them all at once.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: Combining depot files and swinstall them

Hi Ferdi:

You can do:

# cd /tmp/patch

# for F in PH*.depot
> do
> swcopy -v -s /tmp/patch/${F} -x enforce_dependencies=false \* @ /var/tmp/swdepot
done

# swinstall -s /var/tmp/swdepot -x autoreboot=true -x patch_match_target=true

Regards!

...JRF...