1847844 Members
2402 Online
104021 Solutions
New Discussion

Re: make_bundles

 
SOLVED
Go to solution
Joe Profaizer
Super Advisor

make_bundles

I have 5 patches that I want to bundle up in an existing depot. I want to name the bundle "OBII 4.10 Patches 102002". The target depot is /var/spool/sw/patche/depot.
The source directory I have these patches is in /tmp. Do I need to do an swcopy first. I'm confused on the process here. Please advise.
7 REPLIES 7
Ted Ellis_2
Honored Contributor

Re: make_bundles

swcopy is the tool used to copy a patch into a depot.. it will also register the depot:

make sure you have "unshar'd" each patch you downloaded.... (sh filename) You will have a .depot and a .text file out of that

to get the patch to the depot:

swcopy -s /tmp/PHCO_xxxx.depot PHCO_xxxx @ /var/spool/sw

note.. unless you have a special reason for creating a new depot, use /var/spool/sw... that is the default depot.

Repeat for each patch

swinstall -s /var/spool/sw

and you should get the patches placed in that depot

A very clean way to do this would be to note all the patches you want, go the to patches portion of the ITRC... select them all, download them as zip or tar package... you will get all the patches in one file, move that file to the directory where you want the depot/bundle and untar or uncompress. You will find a very handy little script comes with it that is already configured to create a new software depot....

either way
Joe Profaizer
Super Advisor

Re: make_bundles

Thanks, I did the swcopy. Now I want to bundle these 5 patches up into a bundle named "OBII 4.10 Patches 102002". How do I go about doing that?

Thanks.
Ted Ellis_2
Honored Contributor

Re: make_bundles

how about using swpackage to copy your new depot to a tape and then lable the tape with your bundle preference?

swpackage -s /var/spool/sw -x media_type=tape @ /dev/rmt/0m
Junior C.
Frequent Advisor

Re: make_bundles

for file in PH*
do
sh $file
done

mkdir /tmp/OBII 4.10 Patch 102002

for i in PH*.depot
do
swcopy -s ${PWD}/$i \* @ /tmp/OBII 4.10 Patch 102002
done


#Register the depot
#
swreg -l depot /tmp/OBII 4.10 Patch 102002
S.K. Chan
Honored Contributor

Re: make_bundles

Now that's a bit tricky .. I have not done this before but I think you can use "make_bundle" command to do this. From "man make_bundles" I can see that there is a "-o" option that allows you to create the psf file which you can then modify the "title" and "tag" later to your liking. This is not tested but you can try ..
# make_bundles -o psf.mine
Take a look at "psf.mine" file and you should be able to modify the "tag" and "title" line to the description you wanted.
Afetr that I think you have to "swpackage" them.
# swpackage -s psf.mine -d
Now test ..
# swinstall -s
James R. Ferguson
Acclaimed Contributor

Re: make_bundles

Hi Joe:

Ted's original suggest to go to the ITRC Patch database and download any patch will provide you with a scipt that you can canabalize for your purposes. Doing so will provide you with the script ('create_depot_hp-ux_xx' where xx is the release (10 or 11) *and* a 'README_hp-ux' file describing the scripted procedure.

Regards!

...JRF...
Darrell Allen
Honored Contributor
Solution

Re: make_bundles

Hi Joe,

Once you have them in the depot, you can use something like:
make_bundles -B -n CPM_Patches -c Patches -t "CPM Patches of 2002/06/13" -r 2002.06.13 /tmp/depot

After using the above command, I can either use the depot (/tmp/depot) as it is or tar it up and use the tarfile as my depot.

That's what I use to make a bundle of the depot I get when using CPM. This is how that bundle shows using "swlist -l bundle":
CPM_Patches 2002.09.06 CPM Patches of 2002/09/06

man make_bundles to see the options.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)