補丁信息查詢
# 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. 下載補丁
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.