WebSphere WebSphere Enterprise Service Bus V6.0.1 操作系统: AIX, HP-UX, Linux, Solaris, Windows

样本选项响应文件:uninstall.txt

可以使用“WebSphere 软件的更新安装程序”并通过响应文件来卸载服务。

使用选项响应文件来以静默方式卸载更新。

uninstall.txt 文件有一个标识用于卸载服务更新的备份文件的伪指令。该文件中的注释描述了如何设置字符串值。

“WebSphere 软件更新安装程序”向导将读取选项文件以确定响应,但不会显示图形用户界面。以下命令将使用选项文件 myresponsefile.txt 的副本来进行静默卸载:
./update -options "responsefiles/myresponsefile.txt" -silent
如果您不使用 -silent 选项,响应文件将为图形界面提供初始值。
要点: 在本主题中, 为了简单起见,只以 Linux 和 UNIX 平台上的格式显示了某些目录路径。而相应的 Windows 路径除了斜杠方向不同之外,其余内容完全相同。

响应文件所在的位置

样本选项响应文件的名称为 uninstall.txt。在将“WebSphere 软件的更新安装程序”解压缩到 WebSphere 软件产品的根目录中之后,该响应文件将位于 install_root/updateinstaller/responsefiles 目录中。

以静默方式卸载

以静默方式卸载时,选项文件将为“更新安装程序”向导提供值。该向导将读取选项文件以确定响应,但不会显示图形用户界面。以下命令将使用选项文件 myresponsefile.txt 的副本来进行静默卸载:
update -options "myresponsefile.txt" -silent

响应文件用户输入验证

在静默卸载中,响应文件验证已编写到安装中。如果未通过验证,则会将故障记录在 install_root/logs/update/tmp 目录的日志文件中。

要卸载的维护包所在的位置
缺省伪指令设置
-W backup.package=""
有效设置
必须将此伪指令设置为备份文件所在的位置。备份文件将保存维护应用程序。例如,在 Linux 系统上,可以指定以下位置:
opt/properties/version/update/backup/maintenance_package_to_install
错误标识:
  • 无法卸载维护包。卸载维护时将破坏下列取代维护包。首先要卸载取代维护包:list_of_superseding_maintenance_packages
  • 无法卸载此维护包。下列维护包依赖于您正在尝试卸载的软件包:list_of_dependent_maintenance_packages
  • 无法卸载此维护包。下列维护包依赖于您正在尝试卸载的 APAR:list_of_dependent_maintenance_packages
  • 没有安装备份软件包可用于卸载维护。
替代产品位置

尽管可以从另一个产品中卸载维护,但是始终要从正在更新的产品的目录结构中使用“更新安装程序”向导。除非绝对需要使用此伪指令,否则不要使用它。

缺省伪指令设置
-W product.location=""""
有效设置
必须将此伪指令设置为替代产品的安装根目录。例如,在 Linux 系统上,可以指定以下位置:
/opt/IBM/WebSphere/ProcServer2
错误标识:
  • 无法卸载维护包。卸载维护时将破坏下列取代维护包。首先要卸载取代维护包:list_of_superseding_maintenance_packages
  • 无法卸载此维护包。下列维护包依赖于您正在尝试卸载的软件包:list_of_dependent_maintenance_packages
  • 无法卸载此维护包。下列维护包依赖于您正在尝试卸载的 APAR:list_of_dependent_maintenance_packages
  • 没有安装备份软件包可用于卸载维护。

使用说明

uninstall.txt 文件示例

编辑“WebSphere 软件的更新安装程序”压缩文件中包含的文件的版本。并不保证以下示例是实际文件的精确呈现。
################################################################################
#
# This is the silent install response file for uninstalling maintenance packages
# using the update installer.
# 
# A common use of an options file is to run the wizard in silent mode. This lets
# the options file author specify wizard settings without having to run the
# wizard in graphical or console mode. To use this options file for silent mode
# execution, *uncomment* and modify the parameters defined within.
#
# Use the following command line when running the wizard from the update 
# installer directory:
# 
#    update -options responsefiles/uninstall.txt -silent
#
################################################################################
################################################################################
#
# Used to input the maintenance backup package filename to be uninstalled. 
# This is the same filename as the package that was originally installed.
# A maintenance package can only be uninstalled if a backup package exists.
#
# ie. -W backup.package="PQ20029.pak"
#
# Note: If no package is specified, a default of the last installed maintenance 
# package will be used.
#
#-W backup.package=""
################################################################################
#
# Used to modify the product install location that will be updated. 
# This value should be left commented out if the Update Installer is 
# being run from the recommended location
#
# ie. -W product.location="C:\Program Files\IBM\WebSphere\ProcServer"
#
# Note: If no location is specified, the parent directory to update installer 
# will be used as default
#
#-W product.location=""
################################################################################
#
# Do not edit these values.
#
-W update.type="uninstall"

参考主题

使用条款 | 评价此页

Timestamp icon上次更新时间: 3 Mar 2006
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.wesb.doc.nl1_6.0.1\doc\rins_rf_uninstall_service.html

(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
本信息中心基于 Eclipse 技术。(http://www.eclipse.org)