40 individual patches need to be install (68 Views)
Reply
Frequent Advisor
hi_5
Posts: 50
Registered: ‎05-13-2003
Message 1 of 3 (68 Views)
Accepted Solution

40 individual patches need to be install

I have to install 40 individual patches...is there a faster way to do this ???
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 3 (68 Views)

Re: 40 individual patches need to be install

1) go to http://itrc.hp.com

2) click individual patches

3) Click hpux

4) Choose your OS

5) Choose search by Patch ID

Find your patches, press select for download button.

When done, you will be able to download a file called patches.zip

put it binary onto the hpux box, perferably in its own directory

cd /dir

unzip patches.zip

There will be a create depot script.

create_depot -d /tmp/patch.depot

Now 40 scripts are 1 depot

swinstall -x autoreboot=true -x reinstall=false -s /tmp/patch.depot \*

You're done.

Obviously plan for a reboot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 3 of 3 (68 Views)

Re: 40 individual patches need to be install

Hi:

If you have collected a set of patches and want to install them with a single reboot, place the downloaded patches into the /tmp directory, "un-shar" them and copy them into a depot for installation:

# 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. You can also run 'swinstall' in preview mode to perform a depot software analysis too.

The 'swcopy' syntax shown above can be modified to specify '-x enforce_dependencies=false'. This forces 'swcopy' to ignore dependency verification until the actual 'swinstall' analysis phase. This is very useful when you do not want to download dependency patches because you know that you already have on your server.

If you don't yet have the patches downloaded, take advantage of the ITRC Patch database shopping-cart. Select the patches you need, including all dependent patches offered, regardless of whether you have them or not on your server, and add them to the "cart". The dependencies will be automatically selected and included in the "shopping list". When you are done collecting the patches, download them as a bundle. A 'gzip' file is ideal.

Once on your server, uncompress the 'gzip' file in the /tmp directory:

# gzip -d filename.tar.gz

Next extract the 'tar' file:

# tar xvf filename.tar

This will yield a 'README" file with more instructions and a file named 'create_depot_hp-ux_VV' where VV is the OS version. By executing the 'create_depot_hp-ux_VV' file, the selected patches will be un-shared and copied into a software depot (via 'swcopy'). At that point the depot ('/tmp/depot') is ready for use by 'swinstall'. Since the patches are collected into a bundle for installation, *only one* reboot is necessary regardless of the number of patches requiring this action.

Regards!

...JRF...
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.