- 论坛徽章:
- 1
|
作者: Lisboa 出自: http://www.linuxdiyf.com
补丁信息查询
# showrev -p
Patch: 116299-08 Obsoletes: Requires: Incompatibles: Packages: SUNWxsrt, SUNWjaxp, SUNWxrgrt, SUNWxrpcrt
Patch: 116303-02 Obsoletes: Requires: Incompatibles: Packages: SUNWxrpcrt
Patch: 116353-01 Obsoletes: Requires: Incompatibles: Packages: SUNWcjaf, SUNWcjmail
# patchadd -p
Patch: 116299-08 Obsoletes: Requires: Incompatibles: Packages: SUNWxsrt SUNWjaxp SUNWxrgrt SUNWxrpcrt
Patch: 116303-02 Obsoletes: Requires: Incompatibles: Packages: SUNWxrpcrt
Patch: 116353-01 Obsoletes: Requires: Incompatibles: Packages: SUNWcjaf SUNWcjmail
Showrev是二进制程序,patchadd是个脚本。Showrev比patchadd执行速度要快。
实例操作(安装补丁)
1. 下载补丁
Sunsolve.sun.com下载补丁
2. 安装补丁
# chmod +x /tmp/120901-03/*
# patchadd 120901-03
Validating patches…
Loading patches installed on the system…
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!
Approved patches will be installed in this order:
120901-03
Checking installed patches…
Verifying sufficient filesystem capacity (dry run method)…
Installing patch packages…
Patch 120901-03 has been successfully installed.
See /var/sadm/patch/120901-03/log for details
Patch packages installed:
SUNWcsr
SUNWdtrc
SUNWzoneu
3. 查看新安装的补丁
# patchadd -p |grep 120901-03
Patch: 120901-03 Obsoletes: 121267-01 Requires: Incompatibles: Packages: SUNWcsr SUNWdtrc SUNWzoneu
4. 卸载补丁
# patchrm 120901-03
Validating patches…
Loading patches installed on the system…
Done!
Checking patches that you specified for removal.
Done!
Approved patches will be removed in this order:
120901-03
Checking installed patches…
Backing out patch 120901-03…
Patch 120901-03 has been backed out.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31/showart_572605.html |
|