HPUX补丁包分2种:
一种是BUNDLE在一起的;
另一种是单个的小补丁;
如果补丁包BUNDLE在一起,那安装的时候可以进行打包安装,简单很多;否则必须针对patch逐个安装;
一:针对BUNDLE在一起的包hpux__11.11_10180112.zip的安装:
第1步:FTP上传包和unzip文件
略过
# pwd
/tools/hp
# ls
hpux__11.11_10180112.zip
unzip
第2步:解压缩,在解压缩后会生成一个create_depot_hpux.11.11文件
# ./unzip hpux__11.11_04270847.zip
Archive: hpux__11.11_04270847.zip
inflating: patch_manifest
inflating: README_hp-ux
inflating: create_depot_hpux.11.11
inflating: PHCO_33205
inflating: PHCO_35520
inflating: PHCO_35732
inflating: PHKL_29243
inflating: PHKL_30398
inflating: PHNE_28810
inflating: PHNE_32477
inflating: PHNE_34427
inflating: PHSS_32731
inflating: PHSS_32732
inflating: PHSS_33945
inflating: PHSS_36086
inflating: PHSS_36087
inflating: PHSS_36088
inflating: PHSS_37517
# ls -ltr
total 361560
-rw-r–r– 1 root sys 67128 Aug 26 2003 PHKL_29243
-rw-r–r– 1 root sys 1265390 Nov 29 2003 PHNE_28810
-rw-r–r– 1 root sys 125517 Apr 1 2004 PHKL_30398
-rw-r–r– 1 root sys 5388391 Aug 16 2005 PHNE_32477
-rw-r–r– 1 root sys 227962 Aug 30 2005 PHCO_33205
-rw-r–r– 1 root sys 19483606 Sep 7 2005 PHSS_32731
-rw-r–r– 1 root sys 1375723 Jul 12 2006 PHNE_34427
-rw-r–r– 1 root sys 4474544 Mar 30 2007 PHSS_32732
-rw-r–r– 1 root sys 15997472 May 1 2007 PHSS_33945
-rw-r–r– 1 root sys 20883733 May 1 2007 PHSS_36087
-rw-r–r– 1 root sys 9951902 May 8 2007 PHSS_36086
-rw-r–r– 1 root sys 5327304 May 8 2007 PHSS_36088
-rw-r–r– 1 root sys 1779 Oct 22 2007 README_hp-ux
-rw-r–r– 1 root sys 486571 Dec 18 2007 PHCO_35732
-rw-r–r– 1 root sys 7382332 Mar 11 2008 PHCO_35520
-rw-r–r– 1 root sys 15111316 Mar 28 2008 PHSS_37517
-rwxr-xr-x 1 root sys 5761 Apr 27 2008 create_depot_hpux.11.11
-rw-r–r– 1 root sys 946 Apr 27 2008 patch_manifest
-rwxrwxrwx 1 root sys 77413386 Nov 3 17:43 hpux__11.11_04270847.zip
-rwxrwxrwx 1 root sys 110955 Nov 3 17:44 unzip
第3步:创建一个depot文件,在当前目录下生产一个目录depot
# sh create_depot_hpux.11.11
DEPOT: /tools/hp/depot
BUNDLE: BUNDLE
TITLE: Patch Bundle
UNSHAR: y
PSF: depot.psf
Expanding patch shar files…
x – PHCO_33205.text
x – PHCO_33205.depot [non-ascii]
x – PHCO_35520.text
….
======= 11/03/09 17:46:57 EAT END swverify SESSION (non-interactive)
(jobid=rp3440-0076)
# ls -ltr
total 512088
…..
-rw-rw-rw- 1 root sys 1391 Nov 3 17:46 depot.psf
drwxr-xr-x 19 root sys 4096 Nov 3 17:46 depot
# cd depot
# ls -ltr
total 136
dr-x—— 3 root sys 96 Nov 3 17:46 PHCO_33205
dr-x—— 7 root sys 4096 Nov 3 17:46 PHCO_35520
dr-x—— 5 root sys 96 Nov 3 17:46 PHCO_35732
dr-x—— 4 root sys 96 Nov 3 17:46 PHKL_29243
dr-x—— 4 root sys 96 Nov 3 17:46 PHKL_30398
dr-x—— 4 root sys 96 Nov 3 17:46 PHNE_28810
dr-x—— 18 root sys 4096 Nov 3 17:46 PHNE_32477
dr-x—— 8 root sys 4096 Nov 3 17:46 PHNE_34427
dr-x—— 7 root sys 4096 Nov 3 17:46 PHSS_32731
dr-x—— 9 root sys 4096 Nov 3 17:46 PHSS_32732
dr-x—— 6 root sys 96 Nov 3 17:46 PHSS_33945
dr-x—— 3 root sys 96 Nov 3 17:46 PHSS_36086
dr-x—— 4 root sys 96 Nov 3 17:46 PHSS_36087
dr-x—— 3 root sys 96 Nov 3 17:46 PHSS_36088
dr-x—— 34 root sys 4096 Nov 3 17:46 PHSS_37517
dr-x—— 19 root sys 4096 Nov 3 17:46 catalog
dr-x—— 2 root sys 96 Nov 3 17:46 BUNDLE
-rw-r–r– 1 root sys 40778 Nov 3 17:46 swagent.log
第4步: 利用swinstall进行安装
注意:在执行单个文件安装的时候,指定具体文件的绝对权路径;/tools/hp/PHCO_33205.depot
但是执行打包安装时,指定具体的目录,如:/tools/hp/depot
# pwd
/tools/hp/depot
# swinstall -s /tools/hp/depot
第5步:进入字符菜单,自动选择打包的所有PATCH,然后选择INSTALL
第6步:进入INSTALL后,操作系统会自动扫描,确认这些PATCH是否有必要安装,如果扫描失败可以进入LOGFILE查看失败原因。
有时候,只是因为这个PATCH已经安装过,所以不需要安装而已。
第7步: 点击OK进行安装。
PS:或者使用sam安装
sam->software management->Install software to localhost
二: 针对单个patch进行安装:
第1步:解压缩
第2步:执行补丁文件,会自动生成2个文件
# pwd
/tools/hp
# sh PHCO_35520
x – PHCO_33205.text
x – PHCO_33205.depot [non-ascii]
第3步:利用swinstall进行安装,和上面描述类同
#swinstall -s /tools/hp/PHCO_33205.depot
另外:在安装软件的时候有时候会报错(说缺少一些关联文件,实际上是不需要的),去掉Enforce auto relevance(关联性检测的某个选项),可以继续安装