Operating System - HP-UX
1838655 Members
3547 Online
110128 Solutions
New Discussion

copy a patch depot then add a patch

 
SOLVED
Go to solution
lawrenzo
Trusted Contributor

copy a patch depot then add a patch

Hello,

I have been given a task where I need to add an x25 patch to an existing depot, inside the depot are lots of registered patches and the idea is that this bundle is the most up to date patches reaquired by my orgonisation

I need to know:

- How to make a copy of an existing depot before I go in and add the new patch.

- when I download the x25 patch, waht is the procedure to add this to an existing depot.

I have read some docs on this but am quite confused.

thanks
hello
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: copy a patch depot then add a patch

Use swcopy.

swcopy the existing depot to a new one.

Then in the new one, swcopy again - specify the target is the new one, then add the x25 patch.

man swcopy for more info.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ermin Borovac
Honored Contributor

Re: copy a patch depot then add a patch

1. copy existing depot to a new one

swcopy -s /old_depot \* @ /new_depot

2. copy x25 patch into a new depot

swcopy -s /tmp/x25_patch.depot \* @ /new_depot
Sridhar Bhaskarla
Honored Contributor
Solution

Re: copy a patch depot then add a patch

Lawrenzo,

Above will give you exactly what you need. However, this patch will be installed as a seperate patch but as not part of the bundle that you have in the existing depot.

It will be confusing to you initially. But once you get a picture of it, you will start appreciating it. The approach you may want to take is install the patches as bundles instead of individual ones. For ex., HP's QPK and HWE are installed as bundles. If you do 'swlist', you will see QPK and HWE bundles insted of individual patches on them. They will help identify the release the so that you know what level your system is at.

So, I suggest you copy all the individual patches into a different bundle and then copy the bundle to the depot. For ex., you downloaded all the 'up-to-date' patches into /tmp/patches directory. Then do

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

Now you have got a depot of individual patches. 'swlist -d @ /tmp/patches/depot' will display all the patches in it.

Put them all in a bundle.

make_bundles -B -n latest_Patches \
-t "Latest patches August 2004" /tmp/patches/depot

Run the command 'swlist -d @ /tmp/patches/depot' to see the difference.

Now copy the bundle at /tmp/patches/depot into the existing depot using 'swcopy'. You will see two (or more bundles) inside your existing depot. You can select them together while installing them.

You can keep doing it for all the latest patches.

This way software management will be much easier.

-Sri





You may be disappointed if you fail, but you are doomed if you don't try
lawrenzo
Trusted Contributor

Re: copy a patch depot then add a patch

Hello Sri,

The advice is helping me to build a bigger picture of what I need to do.

We already have a patch depot call BAU_2004 with all the latest patches.

I need to add an x25 patch to this so do i need to remove the old bundles and recreate the depot with the x25 patch?

how do I do this?

Thanx in advance
hello