1830933 Members
1946 Online
110017 Solutions
New Discussion

Re: Patch bundles

 
SOLVED
Go to solution
Neil Harris
Regular Advisor

Patch bundles

I am upgrading to oracel 9i and as part of this I need to add a number of patches to HP-UX 11.00 on an L2000 as per oracles install instructions. These are in addition to the march 2002 bundle I have just installed:( I have down loaded the patches and their dependencies. I am now wondering if I can combine them into one bundle rather than having to do each one individually and do a patch match. Any help on this would be appriciated.
An inveterate hacker
6 REPLIES 6
Alex Glennie
Honored Contributor

Re: Patch bundles

Neil ,

This is a common problem .... take a look at http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x48ea9200caded5118ff40090279cd0f9,00.html

if you still have problems let us now the errors you encounter .....
Clemens van Everdingen
Honored Contributor
Solution

Re: Patch bundles

Hi,

Just use this:

Unsharring patches:

cd /tmp
for X in PH*
do
sh $X

make depot:

mkdir /tmp/patches
for X in /tmp/PH*.depot
do
swcopy -s /tmp/${X} \* @ /tmp/patches

use swreg -l /tmp/patches to register this as a depot.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Clemens van Everdingen
Honored Contributor

Re: Patch bundles

Hi,

sorry the swreg should be

swleg -l depot /tmp/patches

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Sukant Naik
Trusted Contributor

Re: Patch bundles

Hi Neil,

Mentioned below is an example for bundling patches.

Create a Patch Depot:
Obtain the set of patches you want to place and manage in an SD depot. For example:

PHCO_7891 PHCO_9348 PHKL_9361 PHSS_7726 PHSS_8966
PHSS_9400 PHCO_8353 PHKL_8376 PHKL_9569 PHSS_8667
PHSS_9201

HP patches as delivered by the Response Center or the HP Web site are shar files consisting of a product depot and README file.


Unshar the patches:
# for i in PH*
do
sh $i
done

Combine all these separate depots into one depot. To do this, use the swcopy command. First, create the directory to store the patches:
# mkdir /var/opt/ignite/Patches


Now take the patch depots and copy them into the target depot:
# for i in PH*.depot
do
swcopy -s ${PWD}/$i \* @ /var/opt/ignite/Patches
done

Verify the contents of the depot:
# swlist -d @ /var/opt/ignite/Patches


Assuming the above example list of patches, you would see the following:
# Initializing... # Contacting target "interop1"... # # Target:
interop1:/var/opt/ignite/Patches #

#
# No Bundle(s) on interop1:/var/opt/ignite/Patches
# Product(s):
#

PHCO_7891 B.10.00.00.AA allows mount to turnon hfs-specific opts
PHCO_8353 B.10.00.00.AA cumulative awk(1) patch
PHCO_9348 B.10.00.00.AA cron(1M) and at(1) patch
PHKL_8376 B.10.00.00.AA Fix vmtrace bug.
PHKL_9361 B.10.00.00.AA Fix panic caused by MP race
PHKL_9569 B.10.00.00.AA NFS and VxFS (JFS) cumulative patch
PHSS_7726 B.10.00.00.AA CDE Dtterm August 96 patch
PHSS_8667 B.10.00.00.AA CDE Runtime Nov96 Patch
PHSS_8966 B.10.00.00.AA LIBCL cumulative patch
PHSS_9201 B.10.00.00.AA fix for aC++ dld.sl
PHSS_9400 B.10.00.00.AA ld(1) cumulative patch


In the above output, swlist states that the depot has "No Bundles". HP-UX Patches are SD "products", but Ignite-UX can only manage SD "Bundles".


Convert the individual patches into a single bundle using the /opt/ignite/bin/make_bundles command. Run the script and create a bundle in the Patches depot:
# make_bundles -B -n Misc_Patches -t "HP-UX 10.20 Patches" /var/opt/ignite/Patches

Rerun swlist on this depot to verify the Bundle has been created:
# swlist -d @ /var/opt/ignite/Patches


(Output of swlist command assuming the example patches)
# Initializing...
# Contacting target "interop1"...
#
# Target: interop1:/var/opt/ignite/Patches
#

#
# Bundle(s):
#

Misc_Patches HP-UX 10.20 Patches

The default behavior of swlist is to now show only the higher level software bundles. Individual patches in the bundle can still be viewed by using swlist options. The following will show the patch "products" contained in the bundle:
# swlist -l product -d @ /var/opt/ignite/Patches

Hope this helps.
-Sukant
Who dares he wins
Trond Haugen
Honored Contributor

Re: Patch bundles

And the command to install from the depot would be 'swinstall -x autoreboot=true -x patch_match_target=true -s
/your-depot'.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
pap
Respected Contributor

Re: Patch bundles

Hi Neil,
Assuming that you have HP-UX software support contract with HP.

You can just login to ITRC with your support ID and go to Custom patch manager and find out the required patches for your machine. and create the bundle for all patches. You can download from HP web site then. This will create single DEPOT file and you can install all the required patches at one time.

hope this helps.

-pap
"Winners don't do different things , they do things differently"