a)Point補丁程序:
這類補丁僅僅是針對某一問題或缺陷而發(fā)布的單個補丁程序,solaris7、solaris8、solairs9的Patch一般為*.zip文件solaris2.6一般為.tar.Z或.tar.gz文件,它有如下編號方式:
patch base code-revision num (如110668-04)
前面部分是這個補丁的主版本號(base code),后面部分是此補丁的修訂號。兩者合起來構成此補丁的Patch-ID。如上例編號為110668-04的補丁,110668為主版本號,04是修訂號。此補丁是在110668-03的基礎上做了新的修復。有一點需要指出,補丁版本號為110668的一系列補丁都是針對 /usr/sbin/in.telnetd 這一文件的不同問題的修復,110668-04發(fā)布以后,sun將不再提供110668-04以前的補丁,如110668-03等。
b) Cluster補丁程序:
cluster補丁僅僅是一系列point補丁的重新包裝,并帶有自動安裝程序。Cluster補丁的命名方式如下:
version_Recommended
如:9_x86_Recommended.zip是針對Solaris 9 for X86的補丁集。
8_Recommended.zip是針對Solaris 8 for Sparc 的補丁集。
每個Cluster補丁都對應一個CLUSTER_README文件,詳細描述了該Cluster包含的補丁,以及安裝的方法或注意事項。
3.5 安裝PATCH過程中出現(xiàn)的問題
在安裝補丁的過程中,經(jīng)常出現(xiàn)一些錯誤提示。例如:
Installation of 123456-11 failed. Return code 2
通過Return code我們可以知道錯誤類型。需要注意的是,Return code 2說明此補丁已被安裝,Return code 8說明此補丁要修復的軟件沒有被系統(tǒng)安裝。因此,2和8是完全可以被忽略的錯誤提示。下表說明了各個Return code對應的錯誤類型。
Exit code Meaning
0 No error
1 Usage error
2 Attempt to apply a patch that's already been applied
3 Effective UID is not root
4 Attempt to save original files failed
5 pkgadd failed
6 Patch is obsoleted
7 Invalid package directory
8 Attempting to patch a package that is not installed
9 Cannot access /usr/sbin/pkgadd (client problem)
10 Package validation errors
11 Error adding patch to root template
12 Patch script terminated due to signal
13 Symbolic link included in patch
14 NOT USED
15 The prepatch script had a return code other than 0. 17 Mismatch of the -d option between a previous patch install and the current one.
18 Not enough space in the file systems that are targets of the patch.
19 $SOFTINFO/INST_RELEASE file not found
20 A direct instance patch was required but not found
21 The required patches have not been installed on the manager
22 A progressive instance patch was required but not found tr>;
23 A restricted patch is already applied to the package
24 An incompatible patch is applied
25 A required patch is not applied
26 The user specified backout data can't be found
27 The relative directory supplied can't be found
28 A pkginfo file is corrupt or missing
29 Bad patch ID format
30 Dryrun failure(s)
31 Path given for -C option is invalid
32 Must be running Solaris 2.6 or greater
33 Bad formatted patch file or patch file not found
34 The appropriate kernel jumbo patch needs to be installed
35 Later revision already installed