怎么样安装AIX 补丁或者补丁集


AIX补丁软件的分类及安装方法

软件组成

Fileset:一组实现特定功能文件Files)的集合。可安装的最小单位。
Package:一组具有相同功能的Filesets的集合。可安装的单个映射(Images)。
LPP:一个包含所有与本LPP有关的FilesetsPackages的完整的软件产品。
Bundle:一组用于特定环境的FilesetsPackages的集合。

Bundle的种类:
App-Dev:应用程序开发所需的程序和工具
Client:在client/server环境下,作为Client运行所需的程序
Graphics-startup:运行X-Windows所需的程序(不如Pers-Prod中的功能全)
Hdwr-Diag:运行硬件测试所需的程序
Pers-Prod:提供完整功能的图形环境所需的程序
Server:在client/server环境下,作为Server运行所需的程序(提供完整的系统管理功能)

软件的三种状态:
Apply:软件处于应用状态,但未被提交(Commit
Commit:软件已经提交
Reject:软件被从系统中删除

注意:安装软件时,可用如下命令
# smit easy_install
指定欲安装的Bundles
一般选择安装App-DevServer两个Bundles

# lslpp [–l | –h] 系统软件列表
-l:列出已安装的软件清单
-h:列出软件安装的历史清单

# lppchk [–c | –v | –l]校验系统软件的正确性和完整性
-c:执行校验和(checksum)及文件大小检查,校验其是否和SVPDSoftware Vital Product
Database:软件的重要产品数据库)中的一致
-v:校验系统的三个部分(//usr/usr/share)是否有效,是否有丢失的PTF
-l:校验系统的符号连接(Symbolic Links)是否有改变

# instfix –T [–iv] [–s String | –k Keyword | –f File_Name] [–d Device_Name]安装、查找Fixs
-T:显示完整的Fileset内容清单
-s Sting:显示并查找包含指定的字符串的Fileset
-iv:只显示详细的内容列表,而不进行安装
-k Keyword:安装包含指定关键字(Keyword)或纠错码(Fix)的Fileset
-f File_Name:安装包含多个指定关键字或纠错码的Fileset
-d Device_Name:指定输入设备
如:
显示详细的Fileset内容列表:
# instfix –Tvi
从磁带上安装包含指定关键字的Fileset
# instfix –k Keyword –d /dev/rmt0.1
CDROM上查找包含指定字符串的Fileset
# instfix –s String –d /dev/cd0

oslevel可以返回主版本与ML补丁信息

#oslevel -r

5200-06

其中5200是主版本号,06ML小版本号,可以用instfix查看详细信息

#instfix -i|grep ML

    All filesets for 5.2.0.0_AIX_ML were found.

    All filesets for 5200-01_AIX_ML were found.

    All filesets for 5200-02_AIX_ML were found.

    All filesets for 5200-03_AIX_ML were found.

    All filesets for 5200-04_AIX_ML were found.

    All filesets for 5200-05_AIX_ML were found.

    All filesets for 5200-06_AIX_ML were found.

Aix 5.3以上,通过-s参数,还可以查看更详细的sp版本,如:

#oslevel -s

5300-05-04

如果想检查哪个详细的补丁是否安装,则需要用如下的格式

#/usr/sbin/instfix -a -ivk IY59082

    IY59082 Abstract: system hang with jfs2 and heavy load

    IY59082 Symptom Text:

     Heavily loaded system running JFS2 filesystems may hang.

     (Or a single thread may hang on stuck I/O)

    -------------------------------------------

      Fileset bos.mp:5.2.0.41 is applied on the system.

      Fileset bos.mp64:5.2.0.41 is applied on the system.

      Fileset bos.up:5.2.0.41 is applied on the system.

      All filesets for IY59082 were found.

如果检查文件集(filesets)是否安装,则需要用如下的命令

#lslpp -l bos.adt.libm

      Fileset             Level      State       Description

    -----------------------------------------------------------------------------

    Path: /usr/lib/objrepos

      bos.adt.libm              5.2.0.50  COMMITTED  Base Application Development

                                                     Math Library

1、安装文件集

#smit install_latest

选择安装路径,如/dev/cd0

INPUT device / directory for software [/dev/cd0]

在安装的软件选项上按F4或者是Esc 4,打开软件列表,可以用“/”寻找你需要安装的文件集。如找到bos.adt,然后按F7或者Esc 7选中要安装的软件:

    > bos.adt                                                            ALL

     5.2.0.50  Base Application Development Debuggers

     5.2.0.40  Base Application Development Graphics Include Files

     5.2.0.50  Base Application Development Libraries

     5.2.0.50  Base Application Development Math Library

     5.2.0.50  Base Application Development Toolkit

     5.2.0.0  Base Application Development Toolkit Data

     5.2.0.50  Base Application Development Utilities - lex and yacc

     5.2.0.50  Base Operating System Samples

     5.2.0.0  Printer Support Development Toolkit

     5.2.0.0  SCCS Application Development Toolkit

     5.2.0.50  System Calls Application Development Toolkit

     5.2.0.40  Tool to Create installp Packages

回车,确定安装选项

    PREVIEW only? (install operation will NOT occur)              no

    COMMIT software updates?                                      yes

    SAVE replaced files?                                          no

    AUTOMATICALLY install requisite software?                     yes

    EXTEND file systems if space needed?                          yes

    OVERWRITE same or newer versions?                             no

    VERIFY install and check file sizes?                          no

    Include corresponding LANGUAGE filesets?                      yes

    DETAILED output?                                              no

    Process multiple volumes?                                     yes

    ACCEPT new license agreements?                                no

    Preview new LICENSE agreements?                               no

其中

PREVIEW only表示预览安装,如果选yes可以先测试安装

COMMIT software updates表示立即提交,如果选为yes,则SAVE replaced filesno

ACCEPT new license agreements一般选为yes,表示接受许可协议。

确定后,回车开始安装。

2、安装补丁

#smit update_by_fix

选择安装目录,如

INPUT device / directory for software [/dev/cd0]

打开安装列表,选择需要安装的patch,如

      IY35795 smitty causes an error of invalid length of strings in JA_JP

    > IY35810 Enhanced concurrent extendvg with 3 or more nodes may fail

      IY35817 pthread debug resource owner broken for 64-bit mode

确定安装选项,是否提交,是否保存过去的版本等等,确定后提交执行安装。

3、安装补丁集

先把补丁集拷贝到一定目录,

/u01/5206update,然后执行

#smit update_all

选择安装目录/u01/5206update

默认

SOFTWARE to update [_update_all]

选择不提交,保存被覆盖的文件,可以回滚操作,接受许可协议

    COMMIT software updates?                          no

    SAVE replaced files?                              yes

    ACCEPT new license agreements?                    Yes

然后回车执行安装。

注意:如果一个安装刚结束,可能影响到另外一个安装,可以删除当前安装目录下的.toc文件

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11134849/viewspace-613538/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11134849/viewspace-613538/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值