1752425 Members
5702 Online
108788 Solutions
New Discussion юеВ

Patches

 
SOLVED
Go to solution
Shahbaz_1
Regular Advisor

Patches

Hi,
I am new to HP Unix. What are the commands to know the existing patches being applied to the system and to install new patches?
Thanks & Regards
Syed
Let's share the great thing "THE KNOWLEDGE"
8 REPLIES 8
Steven Sim Kok Leong
Honored Contributor

Re: Patches

Hi,

To find out the patches existing:

# /usr/sbin/swlist -l patch

To install a patch after download.

# sh PHXX-YYYYY
# swinstall -s ./PHXX-YYYYY.depot

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: Patches

Hi,

If you want a more summarized and interpretable listing of patches, then:

# /usr/sbin/swlist -l product|grep " PH"

Hope this helps. Regards.

Steven Sim Kok Leong
Ravi_8
Honored Contributor

Re: Patches

Hi,
#dr_dt >> file
#more file

at the end of file you can see the patches prsent in the system.

To install the patches
1. don load the required patch from itrc.hp.com
2.ftp into system to be installed(say /tmp)
3.#sh PHxx_yyyy.txt
4. swinstall
choose the local directory
specify the patch path(/tmp/PHxx_yyyy.depot)
install
never give up
Ravi_8
Honored Contributor

Re: Patches

Hi,
#dr_dt >> file
#more file

at the end of file you can see the patches prsent in the system.

To install the patches
1. down load the required patch from itrc.hp.com
2.ftp into system to be installed(say /tmp)
3.#sh PHxx_yyyy.txt
4. swinstall
choose the local directory
specify the patch path(/tmp/PHxx_yyyy.depot)
install
never give up
Shahbaz_1
Regular Advisor

Re: Patches

Thanks Steven,

It is very clear how to view the existing installed patches. But sorry I couldn't get on installing new patches.

- To install a patch after download.
# sh PHXX-YYYYY
# swinstall -s ./PHXX-YYYYY.depot

What is PHXX-YYYYY, a patch file in shell script format?

After running, does it become *.depot?
Please ....

Thanks & Regards
Syed
Let's share the great thing "THE KNOWLEDGE"
Steven Sim Kok Leong
Honored Contributor
Solution

Re: Patches

Hi,

To install a patch after download.

XX can be:
- CO: Command patch
- SS: Subsystem patch
- KL: Kernel patch
- NE: Network patch

YYYYY is a numeric identifying the patch.

For example:

# sh PHCO-12345
# swinstall -s ./PHCO-12345.depot

The sh command will unshar the patch into two files:
- PHCO-12345.depot
- PHCO-12345.text

PHCO-12345.text contains information regarding the patch installation, including any pre-requisite patches etc.

If you have a support contract, you can download HP-UX patches by accessing this link:

http://us-support2.external.hp.com

Hope this helps. Regards.

Steven Sim Kok Leong
Trond Haugen
Honored Contributor

Re: Patches

If you are running 11.00 and have installed PHCO_24347 (PHCO_24630 for 11i) (or any of it's predesessors) you can run 'show_patches' to list current patches. Only doing a swlist will list all (current and superceeded).
You can remove superseeded patches with 'cleanup'. Again you'll need the patch mentioned above.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Shahbaz_1
Regular Advisor

Re: Patches

Thanks lot, everybody

Regards
syed
Let's share the great thing "THE KNOWLEDGE"