HP-UX Verify patch if required reboot用swlist判断软件安装是否需要重启

HP-UX、Linux、Tru64 UNIX、NonStop、OpenVMS、Windows Server等,数据中心、虚拟化方案等

版主: xyevolve

版面规则
1. 本版是定位于惠普软件系统及解决方案的技术讨论区。
2. 本版鼓励发帖共同讨论技术问题,不鼓励站内信件私下交流,独知知不如众知知。
3. 本版允许转贴或引用他人的作品,但必须声明原作者信息。
4. 本版禁止发表出售、求购、或其他非技术讨论等帖子。
5. 本版禁止灌水,包括但不限于任何与所讨论主题无关的回复,无意义字符,直接复制其他回复等。
6. 本站附件禁止用于商业目的,请在下载后24小时内删除,本站不对其造成的结果负任何责任。
回复
头像
MUDBOY
创始人
帖子: 3877
注册时间: 2010年 12月 28日 21:17 星期二

HP-UX Verify patch if required reboot用swlist判断软件安装是否需要重启

帖子 MUDBOY » 2014年 11月 26日 14:46 星期三

可以使用如下swlist命令来列出fileset是否需要reboot,以升级secure shell为例。

root@host1# swlist -d -l fileset -a is_reboot @ /tmp/HP_UX_11i_v3_SecureShell_A.06.20.012_HP-UX_B.11.31_IA_PA.depot
# Initializing...
# Contacting target "host1"...
#
# Target: host1:/tmp/HP_UX_11i_v3_SecureShell_A.06.20.012_HP-UX_B.11.31_IA_PA.depot
#

# Secure_Shell
Secure_Shell.SECSH-CMN false
Secure_Shell.SECURE_SHELL false
Secure_Shell.SECURE_SHELL false
root@host1#

false代表不需要重启。
如果需要reboot(结果显示为true),但是又不想它自动reboot, 可以在swinstallan安装的时候设置autoreboot=false,以便稍后手动重启。

#swinstall -x autoreboot=false -s /tmp/HP_UX_11i_v3_SecureShell_A.06.20.012_HP-UX_B.11.31_IA_PA.depot \*

提倡分享之精神, 技术问题请在相关版面直接发帖, 站内短信恕不答复.
I don't answer private messages on topics of public interest, because it defeats the whole purpose of a message board.

回复