AIX下软件安装维护

1.  oslevel的使用

The  general  syntax of th oslevel  command is as follows:

oslevel [-l  level  |  -g  level   |  -q  ]  [ -r ]  [ -f ]

A brief  description  of  the  oslevel  command  flags  is  given  in  Table 1-1

 

To  show  the current  maintenance  level  of your system,use  the oslevel  command  as follows:

#oslevel  -r

5300-03

 

 

2.Installing  software

 

Software  can be installed  in one of  two states:applied or committed.

 

The applied state  places software  on the system and retains  the previous version of  software.when  an  update is in the applied  state,the previous version is stored in  the  /usr/lpp/PackageName directory. This  process  is  usefull  for  deploying  or  testing  new software,where  it  may be necessary  to go back  to  the  previous  version  of  the software  in case of  errors.

 

The  committed  state  places   software  on  the  system and removes  all  previous  level  of  the software  from  the /usr/lpp/PackageName  directory.if  committed software  needs to be removed,you cannot  go back to   the  previous  version  without  a  complete  reinstall  of  the  previous  version software.we  recommend  you  install  new  software  in  the  applied  state,rather  than  the committed  state,until  the new  software  has  been  thoroughly   tested.

 

 eg:

For  example  to  install  all  filesets  within the  bos.net  software  package  in /usr/sys/inst.images   directory  in  the  applied  state,whit  a  checksum  check,enter:

#installp  -avX  -d   /usr/sys/inst.images   bos.net             --------应用安装 X表示自动文件系统扩展

  

#installp  -acvX  -d   /usr/sys/inst.images   bos.net             -------------提交安装

 

A  record of  the  installp  output  can  be   found in  /var/adm/sw/installp.summary.

the  following  is  a sample  of  the  file:

#cat   /var/adm/sw/installp.summary    ------查看软件的安装记录。

 

将软件的应用状态更新到提交状态:

#installp  -cgx  all           -----------g表示自动安装需要的相关软件

将软件从应用状态回滚到之前版本:

#installp  -rBfX    ./reject.list              -------------把要回滚的软件写在reject.list列表里面。

 

Listing   all  installable  software  on media

#installp  -L  -d   /dev/cd0

 

小总结:

系统缺省的bundles列表在/usr/sys/inst.data/sys_bundles
用户定义的在/usr/sys/inst.data/user_bundles

文件版本号的格式:Version.Release.Modification.FixLevel

installp常见选项:
installp -agX 以apply方式安装软件,X表示自动扩展文件系统,g表示自动安装需要的其他软件
installp -acgXd dir fileset 以commit方式安装软件,d指定安装文件目录,fileset指定要安装的fileset。
installp -acpX 安装预览
installp -cgX all commit所有软件
installp -r rejec安装过的软件,恢复到以前的版本
installp -u 卸载软件
installp -C 清除错误安装的软件
installp -L -d /dev/cd0 列出介质上的软件包

 

 

 

3.Listing  the maintenance  level  of  software

 

 The  lslpp  command  displays  information  about  installed  filesets or  fileset  updates. The most  commom  flags used with  the  lslpp command are listed in Table  3-4

 

 

查看系统现在文件集的版本 状态:

#lslpp  -l

查看某个具体软件的版本、安装目录等信息:

#lslpp  -f  bos.64bit

查看某个文件集最近的更新状态:

#lslpp  -h   bos.sysmgt.trace

 

小总结:

lslpp常见选项
lslpp -l 列出所有安装的软件当前的版本号
lslpp -f fileset 列出某个fileset包含的文件。
lslpp -h fileset 列出某个fileset的安装和更新历史

 

 

1. 准备工作..............................................................................................................2 2. BOS 安装...............................................................................................................2 3. 系统配置..............................................................................................................6 3.1. 使用 Installation Assistant 进行系统配置.................................................6 3.2. 使用 SMIT 进行系统配置......................................................................7 3.2.1. 修改系统时区(须重启) ..............................................................7 3.2.2. 修改系统时间.............................................................................. 10 3.2.3. 修改异步 IO(须重启)............................................................... 11 3.2.4. 设置 ROOT 口令.......................................................................... 11 3.2.5. 更改最大进程数 .......................................................................... 12 3.2.6. 更改系统用户数 .......................................................................... 13 3.2.7. 配置主机名和 IP 地址.................................................................. 14 3.2.8. 配置系统 PAGING SPACE(hd6)和系统文件系统...................... 16 4. 安装扩展子系统............................................................................................... 18 5. 安装 MAN 文档................................................................................................ 19 6. 系统升级.......................................................................................................... 21 6.1. 使用 update CD 升级........................................................................... 21 6.2. 使用 PTF 光盘升级............................................................................. 22 7. 安装、配置C 语言........................................................................................... 23 7.1. 安装 C 语言软件包............................................................................. 23 7.2. 配置、安装C 语言的License..................................................................... 24 7.3. 测试 C 编译器.................................................................................... 27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值