Operating System - HP-UX
1833838 Members
2681 Online
110063 Solutions
New Discussion

Re: How to depot the patch

 
woodman
Occasional Contributor

How to depot the patch

Hi all,

I have 4 patch which need reboot, could you tell me how to make 4 patch as single depot file.

Thanks
woodman
8 REPLIES 8
J. Bravo
Respected Contributor

Re: How to depot the patch

Hello.

Try it with swcopy:

Copy the patches to a directory (/tmp/patch)
#cd /tmp/patch
#tar xvf file.tar
#for i in PH*
do
sh $i
done

All your patches are unshared now

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

Regards;

J. Bravo.
Denver Osborn
Honored Contributor

Re: How to depot the patch

When you swcopy the patch using the for i loop as suggested, add "-x enforce_dependencies=false" option to swcopy.

swcopy -x enforce_dependencies=false -s ${PWD}/$i \* @ /tmp/patch/depot


-denver
Ivan Krastev
Honored Contributor

Re: How to depot the patch


Also don't forget to add '-x auto_reboot=true' when installing patches.

regards,
ivan
Dennis Handly
Acclaimed Contributor

Re: How to depot the patch

>J. Bravo: Copy the patches to a directory (/tmp/patch)
>Denver: When you swcopy the patch using the for i loop as suggested

If you download multiple patches at once, you get a script create_depot_hp-ux_11 that does all of this for you.
V. Nyga
Honored Contributor

Re: How to depot the patch

Hi,

if you're new to hp-ux it's not bad to use the graphical user interfaces (gui) for such functions.
With 'swcopy' and 'swinstall' you get these gui's.
With swcopy you can collect such patches in one (patch) directory.
With swinstall you can choose all patches in one patch directory to install at once.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Dennis Handly
Acclaimed Contributor

Re: How to depot the patch

>Volkmar: With swcopy you can collect such patches in one (patch) directory.

They are called depots, or directory depots. Vs tape depots that the patches have.

>With swinstall you can choose all patches in one patch directory

Yes, all or part of one depot.
James George_1
Trusted Contributor

Re: How to depot the patch

when you untar the downloaded patches , there should be a create_depot script. You run that script and it will create the depot for you .

Rgds / James
forum is for techies .....heaven is for those who are born again !!
Javed Sarwar
New Member

Re: How to depot the patch

use swcopy without any options, and select the patches by browsing through the menus.

You can them select all of them and copy them into a central directory, swcopy will do the swreg for you, and will advertise the depot for you.

Javy