Operating System - HP-UX
1832617 Members
2995 Online
110043 Solutions
New Discussion

Re: HP-Ux Patch Bundle to be created

 
SOLVED
Go to solution
Naveen Shetty
Frequent Advisor

HP-Ux Patch Bundle to be created

Hi All,

I would like to put forward a query .

I have a bunch of some recommended PHKL Patches relating to Network issues , which I would like to Bundle into one intead of applying one by one , which requires a reboot each time because of kernel rebuilding .

Server Type : HP 9000 N4000
HP-Ux Version : HP-unix 11.0

Kindly guide me with a solution for this .


Thanks & Regards ,


Naveen Shetty .
Queries
7 REPLIES 7
Rainer_1
Honored Contributor

Re: HP-Ux Patch Bundle to be created

you could make a new depot collecting all your patches ie
patch files stored in /tmp, new depot is /tmp/allpatches

swcopy /tmp/PHKL_11111.depot @ /tmp/allpatches
swcopy /tmp/PHKL_22222.depot @ /tmp/allpatches
swcopy /tmp/PHKL_33333.depot @ /tmp/allpatches
an so on for all patches you want
After that you can install all patches with

swinstall -s /tmp/allpatches
Alex Glennie
Honored Contributor

Re: HP-Ux Patch Bundle to be created

How do we insert a patch into an existing bundle in the depot?

RESOLUTION

1. Remove the bundle specification with:
swremove -d bundlename. @/depotname
Note: The >.< dot after the bundle-name.

2. swcopy the new patch(es) into the depot
swcopy -v -s patch.depot @depotname

3. Create a new bundle with make_bundles, use the old name/title/revision

Note:The dot after the bundle-name says remove the bundle-name reference,
but not the patches included in the bundle

eg :

Install ignite !
all patches in sdu format (+ catalog) are in dir /patches.london

/opt/ignite/bin/make_bundles -B -n Patches -t "Patchvorgabe London"
/plattevg05/patches.london


swcopy -s /plattevg05/patches.london/ Patches @
var/opt/local/sw/10.20/patche//future/Y2KPREDX

swlist -l bundle -s /var/opt/local/sw/10.20/patche/future/Y2KPREDX
# Initializing...


# Contacting target "fraco2b"...
#
# Target: fraco2b:/var/opt/local/sw/10.20/patche/future/Y2KPREDX
#

OnlineDiag B.10.20.11.08 HPUX 10.0 Support Tools Bundle
Patches A.1.0 Patchvorgabe London
XSW800GR1020 B.10.20.43 Extension Software Patch Bundle
Y2K-1020S800 B.10.20.B0315 HP-UX Core OS Year 2000 Patch Bundle
#


swreg -u -l depot /plattevg05/patches.london/


Stefan Farrelly
Honored Contributor

Re: HP-Ux Patch Bundle to be created


The above solution from Rainer is good, you now have a single depot which allows you to install all the patches in it in one go - so only 1 reboot. Just copying the patches to the depot registers it so from a remote host you can also install from that depot and once again install all patches in it in one go and thus only 1 reboot (swinstall -x autoreboot=true -s :/tmp/allpatches \\*).

However, not always is installing across the network reliable or advisable for critical patches (any network problems could screw up the install and leave your server in a big mess). Better to install locally, so, how to copy the depot to a remote server first. Either you can copy the entire depot to a local depot on the server you want to install it on by doing;
swcopy -x enforce_dependencies=false -s :/tmp/allpatches \\* @ /tmp/allpatches
Then you can swinstall from the local depot, /tmp/allpatches.
Or, you can use swpackage to create 1 depot file and ftp that around and install from that instead. To create the swpackage depot use; swpackage -x target_type=tape -s /tmp/allpatches \\* @ /tmp/patches.depot
Then ftp patches.depot to a remote server and use swinstall to install from it; swinstall -x autoreboot=true -s /patches.depot \\*
Im from Palmerston North, New Zealand, but somehow ended up in London...
CHRIS_ANORUO
Honored Contributor
Solution

Re: HP-Ux Patch Bundle to be created

1)Move the downloaded patches to /tmp
2)Create a depot eg (mkdir /var/adm/sw/DEPOT
3)Use this is a script for the patches, one after the other:
============================================
(for i in 'PHK*'
do
sh $i
swcopy -s /tmp/$i.depot \* @ /var/adm/sw/DEPOT
done)
==============================================

Cheers!
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
CHRIS_ANORUO
Honored Contributor

Re: HP-Ux Patch Bundle to be created

Hi Naveen,

Once the patches have been copied to the depot directory, you can then use swinstall to install all of them. You can set the dependency flag to false as Stefan has pointed out.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Stefan Farrelly
Honored Contributor

Re: HP-Ux Patch Bundle to be created


Oh great, now the ITRC is displaying \ (backslash) properly. In my above reply replace all \\* with \*
Im from Palmerston North, New Zealand, but somehow ended up in London...
Darrel Louis
Honored Contributor

Re: HP-Ux Patch Bundle to be created

A procedure performed several times and worked
To extract Patch files:
# for i in PH* ( return )
do ( return )
sh $PWD/$i ( return )
done ( return )


# for in PH*depot. ( return )
do ( return )
swcopy -s $PWD/$i \* @ /var/tmp/GSCdepot ( return )
done ( return )

If you want to put the depot on a tape
dd if=/var/tmp/GSCdepot of=/dev/rmt/0m bs=2k

swinstall -s /dev/rmt/0m # To install on target system