1834628 Members
3045 Online
110069 Solutions
New Discussion

Patch Installation

 
vselvaraj
Advisor

Patch Installation

Hi,

I have to install 9 patches in one system, HPUX 11.00, where each patch needs reboot.
Is there any way to install all the patches in one attempt and with one reboot?

Can some one suggest with procedure to do?

Thanks in Advance,
Selva...
5 REPLIES 5
Vincenzo Restuccia
Honored Contributor

Re: Patch Installation

# cd /tmp
# for X in PH*
# do
# sh $X
# done
# mkdir /tmp/patches
# for X in /tmp/PH*.depot
# do
# swcopy -s /tmp/${X} \* @ /tmp/patches
# done
Ravi_8
Honored Contributor

Re: Patch Installation

Hi,
create the bundle as described by vincenzo and install in just one step and reboot.
make a copy of /stand/vmunix before installing the patches.
never give up
John Booth_1
Advisor

Re: Patch Installation

If you have several individual patches which you need to install it is useful to package them all together into one patch depot. This way you do not need to run update or swinstall multiple times and if patches require a
reboot the system will reboot only once.

------------------

Example of creating a SD-UX depot containing 3 different patches.

1. Retrieve the patches for instance from a patch server or web site :

# mkdir /tmp/patches
# cd /tmp/patches

Copy patches via ftp, rcp ... into this directory.

# ls
PHCO_1234 PHCO_1111 PHCO_2222

2. Unpack all patches :

# sh PHCO_1234
# sh PHCO_1111
# sh PHCO_2222

3. Create a patch depot :

# mkdir /tmp/patch_depot
# swcopy -v -s /tmp/patches/PHCO_1234.depot PHCO_1234 @
/tmp/patch_depot #
swcopy -v -s /tmp/patches/PHCO_1111.depot -> PHCO_1111 @ /tmp/patch_depot #
swcopy -v -s /tmp/patches/PHCO_2222.depot PHCO_2222 @ /tmp/patch_depot

4. Register the depot (optional)

# swreg -l depot /tmp/patch_depot

5. Now call swinstall and specify /tmp/patch_depot as your source.

If you need to copy the depot to a tape use the following command :
# swpackage -s /tmp/patch_depot -x target_type=tape -d /dev/rmt/0m "*"

6. Remove patch source.

# rm -rf /tmp/patches
nnf97
Regular Advisor

Re: Patch Installation

Here is the process to create a patch bundle...

The following is a useful process for applying more than one patch while only requiring a single reboot after the final patch installation:

1) Get the individual depots over into /tmp.

2) Make a new directory to contain the set of patches:
mkdir /tmp/DEPOT # For example

3) For each patch "PHNE_11371":

swcopy -s /tmp/PHNE_11371.depot \* @ /tmp/DEPOT

NOTE: May need to disable filesystem mounting check, use:
-x mount_all_filesystems=false

4) select the installation command...

for 10.x use:
swinstall -x match_target=true -x autoreboot=true -s /tmp/DEPOT

for 11.x use:
swinstall -x patch_match_target=true -x autoreboot=true -s /tmp/DEPOT


To verify installation:
swlist -l fileset -a state | grep -i install

If any patches show up as "installed" instead of configured, run the following command:
swconfig \*
Live Free or Die (New Hampshire)