a)Point补丁程序:
这类补丁仅仅是针对某一问题或缺陷而发布的单个补丁程序,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发布以后,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过程中出现的问题
在安装补丁的过程中,经常出现一些错误提示。例如:
Installation of 123456-11 failed. Return code 2
通过Return code我们可以知道错误类型。需要注意的是,Return code 2说明此补丁已被安装,Return code 8说明此补丁要修复的软件没有被系统安装。因此,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.
16 The postpatch 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
Reference:
1.Solaris™8 Operating Environment System Administration I, (SA-23
2.System Administration Guide, Volume 1, (805-722,Solaris
3.SunSolve Patch Support Portal http://sunsolve.sun.com/pub-cgi/show.pl?target=patchpage#作者: nimysun 时间: 2005-04-26 15:49 标题: 教你如何给Solaris打补丁[终结篇] 顶起。作者: lyh303 时间: 2005-04-26 16:25 标题: 教你如何给Solaris打补丁[终结篇] 好东东,顶!作者: ninedot 时间: 2005-04-26 16:27 标题: 教你如何给Solaris打补丁[终结篇] 好呀,学到了很多东西!作者: GoldSn0ke 时间: 2005-04-26 17:17 标题: 教你如何给Solaris打补丁[终结篇] 太好了.tks!~作者: brilyment 时间: 2005-04-26 21:25 标题: 教你如何给Solaris打补丁[终结篇] 不错,收藏!作者: songyupo 时间: 2005-04-26 23:25 标题: 教你如何给Solaris打补丁[终结篇] 好久没看到这位蜘蛛gg了,好东西作者: flighttop 时间: 2005-04-27 07:34 标题: 教你如何给Solaris打补丁[终结篇] If you run into the following errors, don't care about them. Reboot your system and check with uname -a. The Generic_XXXXX-XX is the number of newest patch on your system.
Patch XXXXX-XX failed to install due to a failure produced by pkgadd.
See /var/sadm/patch/XXXXX-XX/log for details
Patchadd is terminating.
# more /var/sadm/patch/117350-24/log
Package not patched:
PKG=FJSVhea
Original package not installed.
Package not patched:
PKG=SUNWcar.d
Original package not installed.
Package not patched:
PKG=SUNWcar.m
Original package not installed.
Package not patched:
PKG=SUNWcar.us
Original package not installed.
Package not patched:
PKG=SUNWcarx.us
Original package not installed.作者: lyh003473 时间: 2005-04-27 08:30 标题: 教你如何给Solaris打补丁[终结篇] very good!!作者: SUNfan 时间: 2005-04-27 10:23 标题: 教你如何给Solaris打补丁[终结篇] 写的不错作者: jackiliu2 时间: 2005-04-27 17:53 标题: 教你如何给Solaris打补丁[终结篇] 正缺这份 感谢分享作者: jac 时间: 2005-04-28 00:21 标题: 教你如何给Solaris打补丁[终结篇] cool作者: ljiayu-nj 时间: 2005-04-28 09:04 标题: 教你如何给Solaris打补丁[终结篇] 在这里可以学到书本上学不到的实用知识作者: DoTar 时间: 2005-04-28 09:35 标题: 教你如何给Solaris打补丁[终结篇] 强烈要求加精作者: flighttop 时间: 2005-04-29 02:06 标题: 教你如何给Solaris打补丁[终结篇] Sun does not have a mailing list for new patch or security problem. You have to go to its Web site for checking out new patch.作者: jf408 时间: 2005-04-29 09:31 标题: 教你如何给Solaris打补丁[终结篇] 高手作者: flighttop 时间: 2005-04-30 11:02 标题: 教你如何给Solaris打补丁[终结篇] If you are lazy, you can install Sun Patch Manager 2.0 on your Solaris system. It can update your system with newest patch by just a command like up2date on RH Linux. But, you do not need to do so. The reason is that if you apply patches manually and regularly, your boss know what you are doing everyday. Once you install the Sun Patch Manager, it applies patches for you and your boss believe you have nothing to do.作者: lanneret_lb 时间: 2005-05-05 17:22 标题: 教你如何给Solaris打补丁[终结篇] 楼主“东方蜘蛛”。。实在太感谢你啦。。。你的稿子都很好。。。。很值得收藏啊。。。Millions thanks.....作者: aigo_H 时间: 2005-05-11 16:53 标题: 教你如何给Solaris打补丁[终结篇] 怎么没有提到pm2.0_all_s9_x86.zip这个补丁管理工具作者: so sorry 时间: 2005-05-11 17:01 标题: 教你如何给Solaris打补丁[终结篇] 昨天刚练了一把作者: jimijiao 时间: 2005-05-17 10:54 标题: 教你如何给Solaris打补丁[终结篇] 支持!作者: qiezi 时间: 2005-09-09 09:25
提示: 作者被禁止或删除 内容自动屏蔽作者: fancyboy 时间: 2005-09-09 09:27 标题: 教你如何给Solaris打补丁[终结篇] [quote]原帖由 "aigo_H"]怎么没有提到pm2.0_all_s9_x86.zip这个补丁管理工具[/quote 发表: