1834175 Members
2716 Online
110064 Solutions
New Discussion

Patch depot

 
Vijaya kumar_1
Occasional Contributor

Patch depot

Hi

I have downloaded around 12+ patches and all are kernel patches. If i install one by one using swinstall it is asking for a reboot every time .. i need a method of installing all the patches in one time and do a reboot.

how can i do this?
Thanks in advance.

Vijaya Kumar
8 REPLIES 8
Keely Jackson
Trusted Contributor

Re: Patch depot

Hi Vijaya

Put all your patches into a depot.

# 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
Carlo Henrico_1
Regular Advisor

Re: Patch depot

Use swpackage to swcopy to bundle them and then install the bundle.

Good luck

Carlo
Live fast, die young - enjoy a good looking corpse!
Jochen Heuer
Respected Contributor

Re: Patch depot

Hi,

you might want to check this document from the knowledge trees:

http://www4.itrc.hp.com/service/iv/docDisplay.do?docId=/DE_SW_UX_Patchmanagment_EN_01_E/how_to_create_a_patch_depot.htm

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Fred.Wu
Frequent Advisor

Re: Patch depot

Go this way:
mkdir /tmp/depot
swcopy -s / @/tmp/depot

After you finish all patches one by one,you can run swinstall -s /tmp/depot
fred
Edgar Matzinger
Advisor

Re: Patch depot

Hi Vijaya,

you have to create a depot in order do this in one go. Use swcopy to create one. Use this procedure: Unshar the downloaded patchfiles and swcopy them into a (temporary) depot. Can be done in a single for-loop:

for f in PHKL*; do
sh ${f}
swcopy -s ${PWD}/${f}.depot ${f} localhost @ path
done

Path is the full pathname of your depot.

HTH, Edgar.
Ravi_8
Honored Contributor

Re: Patch depot

Hi, Vijay

assuming you have downloaded the patches under /tmp.

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

will unshar all the patches

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

will create a bundle of all patches

#swinstall -s /tmp/patch_depot
will install all patches in one shot.
never give up
Jose Mosquera
Honored Contributor

Re: Patch depot

Hi,

In order to install multiple patches in one go, you will need to create
a patches depot as follows :

1. Obtain the set of patches you want to install in your depot.


2. Unshar the patches:

# for i in PH*
do
sh $i
done

3. Combine all these separate depots into one depot. To do this, use the
swcopy command. First, create the directory to store the patches:

# mkdir /tmp/patches

4. Now take the patch depots and copy them into the target depot:

# for i in PH*depot
do
swcopy -x enforce_dependencies=false -s ${PWD}/$i \* @ /tmp/patches
done

5. Verify the contents of the depot:

# swlist -d @ /tmp/patches

NOTE: enforce_dependencies=false lets you install this boundle without needs that all dependencies are inclued in this bundle!

Rgds.
kish_1
Valued Contributor

Re: Patch depot

please go throgh the attachment
share the power of the knowledge