1833475 Members
2832 Online
110052 Solutions
New Discussion

creating patch bundle

 
James Ellis_1
Super Advisor

creating patch bundle

I downloaded all of the kernel patches that is in the June 2000 bundle. I download from itrc. I sh the files, and removed the PHKL_xxxx.text and PHKL_xxxx files. The only thing left is to create a depot/bundle and install all at once. I see various ways to do it, however, all I want to do is create a depot and install all of these kernel patches at once. How do I create the depot? Do I need to swreg? Thanks, james
"In the middle of difficulty lies opportunity" -Einstein
14 REPLIES 14
Helen French
Honored Contributor

Re: creating patch bundle

This document may help you (TKB #KNC063099001):

http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000041842407

Life is a promise, fulfill it!
James R. Ferguson
Acclaimed Contributor

Re: creating patch bundle

Hi James:

'swcopy' will register the depot automatically. There is no need to do 'swreg' for local purposes.

Download both patches and any other dependencies. Then create a depot with 'swcopy'. This will also avoid multiple reboots:

To collect a series of patches into a depot the can be installed with a single reboot, simply download your patches into the /tmp directory; "un-shar" them and do:

# 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}

There is no need to register the depot with 'swreg'. This is done automatically by 'swcopy'. The 'swlist' allows you to preview the depot's contents. Remember, of course, that you can also run 'swinstall' in preview mode to take it through its analysis phase, too.

As desired, you can add the option '-x enforce_dependencies=false' to the 'swcopy' command. Do this in cases where you *know* you have the necessary dependencies satisfied on your target.

Don't worry about the order of the patches in your depot. 'swinstall' will analyze and apply what is necessary and in the correct order.

Regards!

...JRF...
S.K. Chan
Honored Contributor

Re: creating patch bundle

Since you've unshar them, the next few steps would be like so .. (do this at the dir where the PH*.depot files are at)

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

# swlist -d @ /tmp/mydepot
==> Verify the content ..

# swinstall -s /tmp/mydepot
==> Run the swinstall ..
James Ellis_1
Super Advisor

Re: creating patch bundle

One other thing...I need to run the swinstall with the option '-x reinstall=true' because these patches were already installed via the patch bundle, but got corrupted with PHKL_18543. Now that PHKL_18543 is fixed, I need to reinstall these patches. So this option will work with the depot? thanks.
"In the middle of difficulty lies opportunity" -Einstein
Sanjay_6
Honored Contributor

Re: creating patch bundle

Hi,

Try this link to create a depot,

http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000045145898

When doing swinstall, go to the options and select reinstall options over there to reinstall the patches again.

Hope this helps.

Regds
S.K. Chan
Honored Contributor

Re: creating patch bundle

In the "swcopy" statement when you build your depot, put in the option ..

swcopy -x reinstall=true -s ${PWD}/$i \* @ /tmp/mydepot

Arockia Jegan
Trusted Contributor

Re: creating patch bundle

Hi James,

Have a look at this,

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa6e99276484dd611abdb0090277a778c,00.html

You dont need to register the depot by using swreg. swcopy will do that automatically for you.
James Ellis_1
Super Advisor

Re: creating patch bundle

S.K,

Ok, I put the '-x reinstall=true' statement in the swcopy line...but do I need to use the '-x reinstall-true' in the swinstall statement? This is the swinstall statement in the last part of your post. I am going to try this at 6pm when all users are off the db. thanks.
"In the middle of difficulty lies opportunity" -Einstein
James R. Ferguson
Acclaimed Contributor

Re: creating patch bundle

Hi James:

Yes, place the '-x reinstall=true' argument in the 'swinstall' command. 'swinstall's default, unless specified at run time or established in your standard option files (see man 'swinstall') is false for this option.

Regards!

...JRF...
James Ellis_1
Super Advisor

Re: creating patch bundle

So the option '-x reinstall=true' goes in both swcopy statementy as well as the swinstall statement? I thought I read somewhere that the option '-x reinstall=true' should only go in the swinstall statement? thanks...
"In the middle of difficulty lies opportunity" -Einstein
James Ellis_1
Super Advisor

Re: creating patch bundle

I am having problems doing what everyone recommends. I figured maybe I did the commands wrong. Maybe it is because I used the '-x reinstall=true' option within the swcopy command? Maybe when I typed swcopy -x reinstall=true -s ${PWD}/$i\* @ /tmp/mydepot

I did not leave a space between the i AND \? Is that the problem?
"In the middle of difficulty lies opportunity" -Einstein
James R. Ferguson
Acclaimed Contributor

Re: creating patch bundle

Hi James:

Use the '-x reinstall=true' argument in the 'swinstall' command, although I would expect it to work for 'swcopy' too, under situations where you were recopying.

swcopy -x reinstall=true -s ${PWD}/$i \* @ /tmp/mydepot

Regards!

...JRF...
James Ellis_1
Super Advisor

Re: creating patch bundle

I got it working, but when it does the analysis phase it comes back and say some filesets are missing from PHKL_18543, and I recently fixed PHKL_18543. HP asked that I install a command patch to fix the problem with PHKL_18543 and it came out as working when I ran the check_patches utility program. I am running it now to see why its not working...thanks for your help...I'll let you know after the check_patches finish run ~james
"In the middle of difficulty lies opportunity" -Einstein
James Ellis_1
Super Advisor

Re: creating patch bundle

I get this error message: "You do not have the required permission to perform this SD operation. Pls. check to see that you have the required permissions using the swacl command or see your system admin.

Jim
"In the middle of difficulty lies opportunity" -Einstein