日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

5-7章 sa239學(xué)習(xí)筆記之四安裝軟件部分( 三 )



顯示patch安裝的目錄:
# ls /var/sadm/patch
所以/var必須為安裝補(bǔ)丁預(yù)留充分的空間;

獲取補(bǔ)丁的方法:
用戶可向SUN索取update CDrom,或到網(wǎng)站下載;
-------------------------------------------------------------------------------------------
提示:mget獲取文件時(shí)每個(gè)文件都會(huì)提醒,如果不想可以用ftp -i FTPweb,或者在FTP登錄后輸入prompt命令;
--------------------------------------------------------------------------------------------

準(zhǔn)備安裝:
.ZIP文件: # /usr/bin/unzip 105050-01.zip
.tar.z文件:# /usr/bin/zcat 105050-01.tar.Z | tar xvf -

安裝:
# patchadd 105050-01

存儲(chǔ)在/usr/sbin/patchadd下的error code:
0 No error.
1 Usage error.
2 An attempt to apply a patch that has already been
applied.
3 The effective user ID (EUID) is not root.
4 An attempt to save original files failed.
5 The pkgadd command failed.
6 The patch is obsolete.
7 An invalid package directory.
8 An attempt to patch a package that is not installed.
9 Cannot access /usr/sbin/pkgadd (client problem).
10 Package validation errors.
11 An error occurred while adding a patch to the root
template.
12 The patch script terminated due to a signal.
13 A symbolic link was included in the patch.
14 Not used.
15 The prepatch script had a return code other than 0.
16 The postpatch script had a return code other than 0.
17 A mismatch of the -d option occurred between a
previous patch installation and the current one.
18 There is not enough space in the file systems that are
targets of the patch.
19 The $SOFTINFO/INST_RELEASE file was not found.
20 A direct instance patch was required but was not
found.
21 The required patches have not been installed on the
manager.
22 A progressive instance patch was required but was not
found.
23 A restricted patch is already applied to the package.
24 An incompatible patch was applied.
25 A required patch was not applied.
26 The user-specified backout data cannot be found.
27 The relative directory supplied cannot be found.
28 A pkginfo file is corrupt or missing.
29 Bad patch ID format.
30 Dry run failures occurred.
31 The path given for the -C option was invalid.
32 You must be running the Solaris 2.6 OE to the Solaris 9
OE.
33 The patch file was formatted incorrectly or the patch
file was not found.
34 An incorrect patch spool directory was given.
35 A later revision was already installed.
36 You cannot create a safe temporary directory.
37 An illegal backout directory was specified.


刪除補(bǔ)丁patchrm:
如下三種情況無(wú)法正常刪除補(bǔ)丁:

1.在安裝補(bǔ)丁時(shí)用了-d參數(shù):patchadd -d 即更新不進(jìn)行備份;
2.此補(bǔ)丁被其它補(bǔ)丁使用;
3.補(bǔ)丁已經(jīng)被更新的補(bǔ)丁替代;

# patchrm 105050-01


安裝patch cluster:

patch cluster由推薦補(bǔ)丁,安全補(bǔ)丁以及Y2K patch組成;安裝時(shí)必須在/ /var /usr /opt有至少10M的空間,會(huì)把patch存在/var/sadm/pkg目錄,也可-nosave,將不能對(duì)個(gè)別patch進(jìn)行恢復(fù)刪除,


具體步驟如下:
1.確定.zip 或.tar.z文件已經(jīng)解壓;
2.決定使用默認(rèn)的save還是-nosave屬性;
3.到解壓后的patch cluster目錄,進(jìn)行安裝
# cd patch_cluster_directory
# ./install_cluster
4.查看個(gè)別的patch的README文件,看是否還要進(jìn)行附加的步驟;
5.查看日志文件,查看詳細(xì)信息;
6.重啟機(jī)器,使patch 生效;

推薦閱讀