220 likes | 429 Views
第 14 章 软件安装与维护. 内 容 概 要. 明确包定义和命名规范 明确怎样安装和更新软件,以及软件在系统中的管理. AIX 提供的产品. AIX. 应用程序. AIX 文档. 扩展包. AIX linux工具箱 (包含在 AIX 6.1 扩展包中). LPP:. bos. package:. package:. bos.INed. bos.adt. fileset:. fileset:. fileset:. bos.INed. bos.adt.lib. bos.adt.prof. 包定义. 版本完整的产品. 文件集的集合.
E N D
内 容 概 要 • 明确包定义和命名规范 • 明确怎样安装和更新软件,以及软件在系统中的管理
AIX 提供的产品 AIX 应用程序 AIX 文档 扩展包 AIX linux工具箱 (包含在 AIX 6.1 扩展包中)
LPP: bos package: package: bos.INed bos.adt fileset: fileset: fileset: bos.INed bos.adt.lib bos.adt.prof 包定义 版本完整的产品 文件集的集合 最小软件单元
软件束bundle • 软件束bundle :适合特定工作环境和目的的软件包和文件集的集合 • AIX中现有的软件束: • AllDevicesKernels • Alt_Disk_Install • App-Dev • CC_Eval.Graphics • CDE • GNOME • Graphics • KDE • ………..
文件集命名 LPP Package Fileset Suffix bos.terminfo.print.data 命名格式: LPP.msg[.lang].package.fileset
软件更新 # oslevel 6 . 1 . 0 . 0 发行号 补丁号 版本号 修订号 smit update_all 迁移
软件状态 Applied: FILESET 6.1.0.2(New Version) Commit FILESET 6.1.0.1(Old Version) Install or 6.1.0.0 Reject Applied FILESET 6.1.0.1(Old Version) FILESET 6.1.0.2 Committed: Committed Install FILESET 6.1.0.2 6.1.0.2
Software Installation and Maintenance Move cursor to desired item and press Enter. Install and Update Software List Software and Related Information Software Maintenance and Utilities Software Service Management Relocatable Software Installation and Maintenance Network Installation Management EZ NIM (Easy NIM Tool) System Workload Partition Software Maintenance System Backup Manager Alternate Disk Installation EFIX Management Thin Server Maintenance 软件安装与维护
Install and Update Software Move cursor to desired item and press Enter. Install Software Update Installed Software to Latest Level (Update All) Install Software Bundle Update Software by Fix (APAR) Install and Update from ALL Available Software F1=Help F2=Refresh F3=Cancel F8=Image F9=Shell F10=Exit Enter=Do 安装更新软件
Install Software Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * INPUT device / directory for software /dev/cd0 * SOFTWARE to install [_all_latest] + 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 + 安装软件
List Installed Software and Related Information Move cursor to desired item and press Enter. List Installed Software List Installed Software by Bundle List Applied but Not Committed Software Updates Show Software Installation History Show Fix (APAR) Installation Status List Fileset Requisites List Fileset Dependents List Files Included in a Fileset List Fileset Containing File Show Installed License Agreements F1=Help F2=Refresh F3=Cancel F4=List F5=Reset F6=Command F7=Edit F8=Image F9=Shell F10=Exit Enter=Do 软件清单 # smit list_installed lslpp命令: -L列出已安装的软件 -h显示软件安装和更新的历史记录
# lslpp -l "bos.*“ Fileset Level State Description -------------------------------------------------------------------- Path: /usr/lib/objrepos bos.64bit 6.1.0.10 COMMITTED Base Operating System 64 bit Runtime bos.acct 6.1.0.10 COMMITTED Accounting Services bos.adt.base 6.1.0.10 COMMITTED Base Application Development Toolkit bos.adt.include 6.1.0.11 COMMITTED Base Application Development Include Files bos.adt.lib 6.1.0.10 COMMITTED Base Application Development Libraries ... (rest of output omitted) ... 列出已安装的软件
补丁库 可用更新 (来自IBM Web网站 ) 补丁库(本机存储的文件集) 已安装的补丁
Software Service Management Move cursor to desired item and press Enter. Service Update Management Assistant (SUMA) Comparison Reports Rename Software Images in Repository Clean Up Software Images in Repository F1=Help F2=Refresh F3=Cancel F8=Image F9=Shell F10=Exit Enter=Do 软件服务管理 # smit service_software
Comparison Reports Move cursor to desired item and press Enter. Compare Installed Software to Fix Repository Compare Installed Software to List of Available Updates Compare Fix Repository to List of Available Updates 比较报告 # smit compare_report
软件维护与实用程序 # smit maintain_software Software Maintenance and Utilities Move cursor to desired item and press Enter. Commit Applied Software Updates (Remove Saved Files) Reject Applied Software Updates (Use Previous Version) Remove Installed Software Rename Software Images in Repository Clean Up Software Images in Repository Copy Software to Hard Disk for Future Installation Copy Software Bundle to Hard Disk for Future Installation Check Software File Sizes After Installation Verify Software Installation and Requisites Clean Up After Failed or Interrupted Installation Service Update Management Assistant (SUMA)
instfix 命令 • 安装补丁: # instfix -k IY58143 -d /dev/cd0 • 查找补丁: # instfix -ik IY58143 所有有关IY58143的文件集都被找到. • 通过关键词查找补丁: # instfix -s SCSI -d /dev/cd0 • 列出哪个AIX BOS maintenance levels已经部分或完全安装: # instfix -i | grep ML All filesets for 6.1.0.0_AIX_ML were found. All filesets for 6100-01_AIX_ML were found. • 列出AIX BOSmaintenance level部分安装中未被安装的文件集 : # instfix -ciqk 6100-01_AIX_ML | grep :-:
课堂练习 • 下列软件状态中,哪个表示软件可以使用 ? • Applied 状态 • Removed 状态 • Install 状态 • Commit 状态 • 哪个命令可以用来列出已安装的软件? _______________ • 以下选项中哪个可以作为整体安装? • Fileset • LPP • Package • Bundle • 下面两个smit菜单的不同点: Install Software and Update Installed Software to Latest Level (Update All)
课堂练习答案 • 下列软件状态中,哪个表示软件可以使用 ? • Applied 状态 • Removed 状态 • Install 状态 • Commit 状态 • 哪个命令可以用来列出已安装的软件? lslpp -l • 以下选项中哪个可以作为整体安装? • Fileset • LPP • Package • Bundle • 下面两个smit菜单的不同点: a. 安装新软件并对已有软件升级 b. 升级所有已安装软件