可以使用“WebSphere 软件的更新安装程序”并通过响应文件来卸载服务。
使用选项响应文件来以静默方式卸载更新。
uninstall.txt 文件有一个标识用于卸载服务更新的备份文件的伪指令。该文件中的注释描述了如何设置字符串值。
./update -options "responsefiles/myresponsefile.txt" -silent
样本选项响应文件的名称为 uninstall.txt。在将“WebSphere 软件的更新安装程序”解压缩到 WebSphere 软件产品的根目录中之后,该响应文件将位于 install_root/updateinstaller/responsefiles 目录中。
update -options "myresponsefile.txt" -silent
在静默卸载中,响应文件验证已编写到安装中。如果未通过验证,则会将故障记录在 install_root/logs/update/tmp 目录的日志文件中。
opt/properties/version/update/backup/maintenance_package_to_install
尽管可以从另一个产品中卸载维护,但是始终要从正在更新的产品的目录结构中使用“更新安装程序”向导。除非绝对需要使用此伪指令,否则不要使用它。
/opt/IBM/WebSphere/ProcServer2
################################################################################ # # 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"