1834746 Members
2481 Online
110070 Solutions
New Discussion

patch bundles

 
SOLVED
Go to solution
trystan macdonald
Occasional Advisor

patch bundles

Hi,
I need to create a patch bundle containing approximately 6 patches. I have searched the man pages but am not sure how to create this bundle from scratch. Can anybody help?

Thanks in advance,
Trystan.
8 REPLIES 8
Keely Jackson
Trusted Contributor
Solution

Re: patch bundles

Hi Trystan

Download the patches into /tmp (for example) then the following will create a depot and install the patches. Don't forget to take a backup first.

# cd /tmp
# for X in PH*.htm
> do
> sh ${X}
> done

# PDIR=/tmp/patch_depot
# mkdir ${PDIR}
# for X in PH*.depot
> do
> swcopy -s ${PWD}/${X} \* @ ${PDIR}
> done

# swlist -s ${PDIR}
#swinstall -x autoreboot=true -x patch_match_target=true -s /tmp/patches

Cheers
Keely
Live long and prosper
John Palmer
Honored Contributor

Re: patch bundles

Hi,

Have a look at this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0a26eea29889d611abdb0090277a778c,00.html

or this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf086107d277ad611abdb0090277a778c,00.html

This is a very popular subject in the forum, if you use the search button in the top left hand corner and specify 'create patch bundle' there are a lot more threads.

Regards,
John
Manel Ventura
Advisor

Re: patch bundles

Hi,

You can execute the following:

for i in PHKL_XXX PHSS_YYY PHCO_ZZZ
do swcopy -s /tmp/$i.depot -x enforce_dependencies=false -x mount_all_filesystems=false \* @ /tmp/depot1 done

(*) Change the patch names and the pathnames for the real ones.

Best regards,
Manel.
Sritharan
Valued Contributor

Re: patch bundles

Ok lets say you have the patches in tmp e.g /tmp/PHKL_12345.depot

1. create a depot e.g
mkdir /tmp/depot/sripatch

2. to copy the patches to the depot
swcopy -s /tmp/PHKL_12345.depot PHKL_12345 @ /tmp/depot/sripatch

3. do the second step to all the patches.

4. to install thru the bundle
swinstall -s /tmp/depot/sripatch


Thanks & Regards & Good Luck !!!
Sri
Known is a drop...unknown is an ocean -> quote from a movie
Punithan
Advisor

Re: patch bundles

Hi
extract all the depots to a temp directory.
create a depot directory
mkdir /tmp/depot
swcopy all the depot from the temp directory to the depot directory
swcopy -s /temp @ /tmp/depot
swreg the depot as
swreg -l depot /tmp/depot
this will create a directory depot for you, to install use
swinstall -s /tmp/depot
But if you want to create tape depot that is useful to put onto a CD or tape , create a bundle using a psf file
swpackage -x media_type=tape -s bundle.psf @ /destiation
this will create a single .depot file.
Hope this helps.

regard
baba
System Engineer
Stefan Farrelly
Honored Contributor

Re: patch bundles

Install Ignite then simply use;

/opt/ignite/bin/make_bundles

to create a bundle.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Judy Traynor
Valued Contributor

Re: patch bundles

Use the hp web site to create the patch bundle for you, (Select the patches, add them to the cart, put them into a tar format, and away you go)

Or,

Create a dir /tmp/bundle01

use swcopy to select your 6 patches and copy them into the bundle - use /tmp/bundle01 as your target.
Sail With the Wind
Ravi_8
Honored Contributor

Re: patch bundles

Hi,

copy all the patches to any directory (say /tmp)

#cd /tmp
# for i in PH*.txt
do
sh $i
done

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

#swinstall -s /tmp/patch_depot

will install all the patches
never give up