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的安装和更新历史