09-08-2010 08:54 AM
It seems that this is related to:
See my response there (run '/tmp/create_depot_hp-ux_11' to create '/tmp/depot'.)
# swinstall -s /tmp/depot -x autoreboot=true -x patch_match_target=true
09-08-2010 11:17 AM
for i in tmp_$depotname/PH*.depot
swcopy -x enforce_dependencies=false -s $PWD/$i \* @ $PWD/$depotname
it will get all the patch in tmp_$deponame and will create a depot named $depotname
usable with swinstall.
then if you want to make a depot file if you want:
swpackage -x media_type=tape -s $PWD/$depotname \* @ $PWD/$depotname.depot
it will create a file $depotname.depot with all the patch in it.
09-08-2010 09:18 PM
Creating a separate software depot for your patches is useful,
when space is tight and patches have dependencies.
Assuming you have two patches PHNE_20000 and PHNE_20001.
unshare all two patches by typing the following commands.
Next, we have to create a new software depot on the directory /newdir/depot
swpackage -s PHNE_20000.depot -d /newdir/depot
Register your new depot on the sd-ux.
swreg -l depot /newdir/depot
Copy the next patch to the newly created software depot.
swcopy -s `pwd`/PHNE_20001.depot PHNE_20001 @ /newdir/depot
You are now ready to install your patches
swinstall -s /newdir/depot
09-08-2010 10:59 PM
If you downloaded two patches, you can get this wrapped with a script that does all of this, create_depot_hp-ux_11 that JRF mentioned.
09-08-2010 11:43 PM
All you need to run this script and depot automatically will be setup in your system.
If you do not have this script use JRF solution.