Tagged: hp-ux

HP-UX: HOWTO: Apply Patch(es)

This is part of a collection of HP-UX tips from the time I worked as system admin:

Disclaimer:
The information below is the result of my researches in the Internet and of my experiences. It is solely used for my purpose and may not be suitable for others.

1) Download apropriate patches from here

2) Check if there is any shares are opened from HP-UX box to USILDAN4 box. If there is one, save patches into the directory. Also make a copy to USILDAN4:/qa/unix/HP/[version_of_hp_box]/patches

3) Log into HP-UX box and go to the directory where the patches are copied.

4) Move the patches to /tmp/patches (if none, create this directory)

5) Un-tar the patches
GZ extension: # gunzip file.gz TAR.GZ or TGZ extension: # tar xvfz file.tar.gz or # gzip -dc file.tar.gz | tar xvf -

6) Install patches by following below steps: # sh PHSS_xxxx # /usr/sbin/swinstall -x autoreboot=true -x patch_match_target=true -s /tmp/patches/PHSS_xxx.depot

By default swinstall will archive the original software in /var/adm/sw/save/PHSS_22535. If you do not wish to retain a copy of the original software, use the patch_save_files option:

# swinstall -x autoreboot=true -x patch_match_target=true \ -x patch_save_files=false -s /tmp/PHSS_22535.depot

WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature.

For future reference, the contents of the PHSS_22535.text file is available in the product readme:

# swlist -l product -a readme -d @ /tmp/PHSS_22535.depot

To put this patch on a magnetic tape and install from the tape drive, use the command:

# dd if=/tmp/PHSS_22535.depot of=/dev/rmt/0m bs=2k

That's all!
-gibb