[OpenBSD]

[3.4 -> 3.5] | [3.5 -> 3.6] | [3.6 -> 3.7] | [3.7 -> 3.8] | [3.8 -> 3.9] | [3.9 -> 4.0] |
[4.0 -> 4.1] | [4.1 -> 4.2] | [4.2 -> 4.3] | [4.3 -> 4.4] | [FAQ Index]

澶勭悊鏃惰鍔″繀灏忓績!


娉ㄦ剰: 鍗囩骇鍙兘澶熶粠涓涓彂琛岀増鍗囩骇鍒板埌涓嬩竴涓揣閭荤殑鍙戣鐗堛備笉鏀寔璺ㄧ増鏈殑璺宠穬寮忓崌绾с

寮虹儓寤鸿鎮ㄥ湪灏濊瘯鎿嶄綔鍓嶉氱瘒闃呰骞跺畬鍏ㄧ悊瑙f鏂囨。鐨勫唴瀹广 濡傛灉鎮ㄥ湪寰堥噸瑕佹垨杩滅▼鐨勪富鏈轰笂鎵ц姝ゆ搷浣, 鎺ㄨ崘鎮ㄥ厛鍦ㄦ湰鍦板悓鏍风殑绯荤粺涓婃祴璇曞苟鏍¢獙鎴愬姛鍚庡啀灏濊瘯鍦ㄩ噸瑕佹垨杩滅▼涓绘満涓婅繘琛屾搷浣溿

鍗囩骇鏄竴绉嶅皢浣犵殑OpenBSD绯荤粺鎻愬崌涓烘渶鏂扮増鏈殑鏂逛究閫斿緞銆 鐒惰, 鍗囩骇鐨勭粨鏋滃苟闈炲氨鏄垹闄ゅ師绯荤粺-瀹夎鏂扮郴缁熴 鍦ㄥ崌绾ц繃绋嬩腑鏌愪簺鏃х殑搴撴枃浠朵笉浼氳鍒犻櫎, 鍥犱负涓浜涙棫鐨勫簲鐢ㄧ▼搴忓彲鑳戒細闇瑕佽繖浜涙棫鐨勫簱鏂囦欢, 鍗囩骇鏃惰繖浜涙棫鐨勫簲鐢ㄧ▼搴忔湭蹇呬竴瀹氬氨浼氳鍗囩骇銆傚鏋滀綘纭疄鎯冲垹闄よ繖浜涙棫鏂囦欢, 涔熻浣犳渶濂界殑鏂瑰紡鏄叏鏂板畨瑁呬竴涓柊鐗堟湰銆

鐩綍:


鍗囩骇鍓: 闇瑕佽冭檻鍜岀煡閬撶殑浜嬫儏

鎴戜滑鍦ㄨ繖閲屽苟鏈彁渚4.4鍒4.5鐗堟湰涔嬮棿鐨勫叏閮ㄧ殑鍙樺姩鍒楄〃, 浣嗗垪鍑轰簡涓浜涘崌绾ц繃绋嬩腑瀵瑰ぇ澶氭暟鐢ㄦ埛鏉ヨ閲嶈鐨勪簨鎯呫傚鏋滄偍鎯充簡瑙f柊鐗堟湰涓殑鎵鏈夊彉鍖, 璇峰弬闃 plus45.html 鍜 CVS 鍙樻洿鏃ュ織銆

鍗囩骇杩囩▼

閫氳繃瀹夎鍐呮牳鍗囩骇

濡傛灉浣犲彲浠ヨ闂郴缁熸帶鍒跺彴, 鏈绠鍗曞拰瀹夊叏鐨勫崌绾ф柟寮忔槸浠庡畨瑁呬粙璐ㄦ垨 bsd.rd 鍚姩, 骞朵笖閬电収鍗囩骇姝ラ杩涜, 鍗囩骇姝ラ绫讳技浜瀹夎姝ラ

濡傛灉浣犲畨瑁呬簡X, 璇峰湪鍗囩骇鍓嶅姟蹇呮墽琛屼笅鍒楁楠:

rm -rf /usr/X11R6/lib/modules/*
鐒跺悗, 鍦ㄦ寜鐓т笅闈㈡弿杩扮殑 鏈缁堟楠 瀹屾垚鍗囩骇杩囩▼銆

浠庡唴鏍稿惎鍔ㄧ殑涓涓畝鍗曟柟娉曟槸灏4.5鐗堟湰鐨 bsd.rd 鏂囦欢鏀惧埌浣犵殑鍚姩椹卞姩鍣ㄤ笂, 鐒跺悗鎸囩ず鍚姩寮曞鍣ㄧ敤杩欎釜鏂扮殑bsd.rd 鏂囦欢鍚姩銆傚湪amd64鍜宨386骞冲彴涓, 浣犲彧闇鍦ㄥ嚭鐜 boot> 鎻愮ず绗︽椂杈撳叆 "boot bsd.rd" 銆

涓嶅畨瑁呮柊鍐呮牳鍗囩骇

杩欎笉鏄帹鑽愮殑鍋氭硶, 濡傛灉鍙兘璇峰敖閲忛噰鐢ㄥ畨瑁呭唴鏍哥殑鏂规硶!

鏈夋椂鍊欑敤鎴峰湪瀹屾垚鍗囩骇杩囩▼鏃舵棤娉曢噰鐢ㄥ父瑙勭殑鍗囩骇鏂瑰紡銆傛渶甯歌鐨勪緥瀛愭槸涓鍙拌繙绋嬩富鏈, 浣犺闂郴缁熸帶鍒跺彴鏈夊洶闅俱傜敤鎴峰彲浠ュ皬蹇冨湴鍙傜収濡備笅姝ラ杩涜:


鏈鍚庣殑姝ラ

鏃犺浣犳槸閲囩敤涓涓畨瑁呭唴鏍稿畬鎴愪竴涓爣鍑嗙殑"鍗囩骇"杩囩▼, 杩樻槸閲囩敤"灏卞湴"浜岃繘鍒跺崌绾, 閮借繕闇瑕佹墽琛屼竴浜涚壒瀹氱殑鎵嬪姩姝ラ銆

1. 鏂扮殑鐢ㄦ埛鍜岀粍

浣犻渶瑕佷负 Bluetooth 鏂板缓涓涓敤鎴, 浣跨敤 useradd(8) 鍒涘缓杩欎釜鐢ㄦ埛
useradd -u94 -g=uid -c"Bluetooth Daemon" -d/var/empty -s/sbin/nologin _btd

2. 鍗囩骇 /etc

浣犻渶瑕佹彁鍙 etc45.tgz 涓殑鏂囦欢鍒板埌涓涓复鏃剁殑浣嶇疆:

export RELEASEPATH=/usr/rel
tar -C /tmp -xzphf ${RELEASEPATH}/etc45.tgz
杩欎簺鏂囦欢灏嗘寜鐓ф墦鍖呭墠鐨勬牱寮忎粠etc45.tgz涓彁鍙栧嚭鏉:
netstart
rc
rc.conf
services
afs/CellServDB
mail/README
mail/submit.cf
mtree/4.4BSD.dist
mtree/special
/var/named/etc/root.hint
/var/named/etc/named*

娉ㄦ剰寰堟湁鍙兘浠ュ墠浣犲湪鏈満淇敼浜嗚繖浜涙枃浠(鑰佺増鏈殑), 濡傛灉浣犵殑纭慨鏀逛簡瀹冧滑, 灏变笉瑕佹嫹璐濊繖浜涙彁鍙栫殑鏂囦欢, 鑰屽簲璇ヤ娇鐢 sysmerge(8) process 浠f浛銆 涓嬮潰鐨勬嫹璐/绮樿创琛岀敤鏉ユ嫹璐濊繖浜涙枃浠, 杩欓噷鍋囪浣犲皢etc45.tgz瑙e寘鍒颁笂闈㈡帹鑽愮殑浣嶇疆:

cd /tmp/etc
cp netstart rc rc.conf services /etc
cp afs/CellServDB /etc/afs
cp mtree/* /etc/mtree
cp mail/README mail/submit.cf /etc/mail 
cp ../var/named/etc/root.hint ../var/named/etc/named-*.conf /var/named/etc
cp ../var/named/etc/named.conf /var/named/etc/  # 鍋囪鏈湴鍘熸湁鏂囦欢娌℃湁鏇存敼!

3a. 閫氳繃涓涓ˉ涓佹枃浠舵暣鍚堟湰鍦版洿鏀圭殑鏂囦欢Merging locally changed files via a patch file

杩欎簺鏂囦欢鍙兘鍦ㄦ湰鍦拌淇敼杩, 浣嗘槸搴旇琚崌绾у埌4.5銆傚鏋滀綘娌℃湁淇敼杩囪繖浜涙枃浠, 浣犲彲浠ョ洿鎺ユ妸鏂版枃浠舵嫹璐濊繃鍘, 鍚﹀垯杩欎簺淇敼搴旇琚悎骞跺埌浣犵殑鏂囦欢涓:

/etc/changelist
/etc/ftpusers
/etc/ksh.kshrc
/etc/lynx.cfg
/etc/mail/aliases
/etc/mail/trusted-users
/etc/shells
/etc/ssh/ssh_config
杩欎簺鏂囦欢鐨勬洿鏀瑰湪 杩欎釜琛ヤ竵鏂囦欢 閲岄潰銆 浣犲彲浠ヤ互root鐨勮韩浠借繍琛屼笅鍒楀懡浠ゅ皾璇曚娇鐢ㄥ畠:
cd /
patch -C -p0 < upgrade45.patch

杩欐潯鍛戒护灏嗕粎娴嬭瘯杩欎釜琛ヤ竵鍦ㄤ綘鐨勭郴缁熶笂搴旂敤鐨勫濂; 瑕佸疄闄呭簲鐢ㄨ繖涓ˉ涓, 灏卞幓鎺夐偅涓 "-C" 閫夐」銆 娉ㄦ剰, 鏈夊彲鑳戒綘鐨勭郴缁熷畾鍒朵簡鏂囦欢銆佹垨浣犳渶杩戞病鏈夋洿鏂扮郴缁熴佽繕鏈夊氨鏄綘浠庝竴涓4.4鐨勫揩鐓х増鍗囩骇鍒4.5, 杩欎簺鎯呭喌涓嬬郴缁熷彲鑳芥牴鏈棤娉曞簲鐢ㄨ繖涓ˉ涓, 姝ゆ椂, 浣犲彧鑳芥墜鍔ㄥ簲鐢ㄨ繖浜涘彉鍔ㄣ 鍦ㄤ竴涓綘濂戒笉瀹规槗寤虹珛鐨勭郴缁熶笂鏈濂藉湪搴旂敤杩欎釜琛ヤ竵鍓嶅厛娴嬭瘯涓涓嬨

涓嬮潰杩欎簺鏂囦欢宸茬粡鍙戠敓浜嗗彉鍖, 浣犲簲璇ユ鏌ヤ竴涓, 浣嗗畠浠笉搴旇鐩存帴鎷疯礉鎴栨暣鍚 (涔熷氨鏄, 濡傛灉浣犱娇鐢ㄤ簡 pf.conf, 鐪嬩竴涓嬪缓璁殑淇绛栫暐, 鐒跺悗纭畾鏄惁閲囩敤)銆

etc/dhcpd.conf
etc/ntpd.conf
etc/pf.conf

鏈鍚, 浣跨敤 newaliases(8) 鏇存柊鍒悕鏁版嵁搴, mtree(8) 浜х敓鎵鏈夋柊鐩綍:

newaliases
mtree -qdef /etc/mtree/4.4BSD.dist -p / -u

3b. 閫氳繃sysmerge(8)鏁村悎鏈湴淇敼鐨勬枃浠

鏂扮殑 sysmerge(8) 宸ュ叿灏嗘瘮杈冨皢瑕佸畨瑁呯殑鏂囦欢鍜岀郴缁熶笂鐨勫疄闄呮枃浠, 鐒跺悗鍗忓姪浣犲皢杩欎簺鍙樺姩鏁村悎鍒颁綘鐨勭郴缁熷唴銆傛敞鎰, sysmerge涓嶅儚琛ヤ竵鏂囦欢, 瀹冧笉鍋囧畾浣犵郴缁熺殑瀹為檯鎯呭喌, 鎵浠ヤ綘鍙互鐢 sysmerge(8) 鍦鐗堟湰鍙戝睍绾胯矾鍥句腑鐨勬洿澶氳妭鐐闂村崌绾, 渚嬪浠庝竴涓棭鏈熺殑褰-current鍗囩骇鍒4.5-release 鎴栦粠涓涓 -current 鍒颁笅涓涓.

璇峰湪浣跨敤鍓嶅厛闃呰 sysmerge(8) 鐨勭敤鎴锋墜鍐屻 鍚屾牱涔熷缓璁偍闃呰 diff(1), sdiff(1) 鐢氳嚦搴旇鍦ㄧ户缁箣鍓嶅涔犱竴涓 more(1) 鐨勭敤鎴锋墜鍐屻

鍋囪etc45.tgz鍜xetc45.tgz杩欎袱涓枃浠跺凡缁忓湪浣犵殑 $RELEASEPATH, 杩愯:

# sudo sysmerge -as $RELEASEPATH/etc45.tgz -x $RELEASEPATH/xetc45.tgz
Sysmerge(8) 灏嗗悜浣犳樉绀轰竴涓粺涓鐨 diff(1), 璐┛浣犲枩鐖辩殑 $PAGER (涔熷氨鏄, more(1)) , 骞朵笖灏卞鏁扮殑鏇存敼鏂囦欢璇㈤棶浣, 濡傛灉浣犲笇鏈:
  Use 'd' to delete the temporary ./var/www/htdocs/index.html
  Use 'i' to install the temporary ./var/www/htdocs/index.html
  Use 'm' to merge the temporary and installed versions
  Use 'v' to view the diff results again
  Default is to leave the temporary file to deal with by hand

濡傛灉浣犲笇鏈涗繚鐣欎綘鐜版湁鐨勬枃浠, 灏卞垹闄や复鏃舵枃浠, 濡傛灉浣犲笇鏈涚敤鏂扮増鏈殑鏂囦欢鍙栦唬鐜版湁鐨勬枃浠, 灏卞畨瑁呬复鏃舵枃浠躲傚鏋滀綘鎯冲皢涓よ呮暣鍚堝埌涓璧, 閫夋嫨 'm' 灏嗗甫浣犺繘鍏sdiff(1), 浣犲彲浠ユ墜鍔ㄦ暣鍚堣繖涓枃浠躲 榛樿鏄厛鍥炴潵, 浠ュ悗鎵嬪姩澶勭悊杩欎釜鏂囦欢銆

灏界sysmerge鍙互灏嗘柊鐢ㄦ埛鏁村悎鍒颁綘鐨勭郴缁熷唴, 浣嗘槸鎴戜滑涓嶆帹鑽愭偍浣跨敤瀹冭繖鏍峰仛, 鎴戜滑杩樻槸寤鸿鎮ㄤ娇鐢涓婇潰鐨剈seradd(8) 閭h銆傛垜浠浉淇¤繖鏍峰彲浠ュ噺灏戝嚭鐜伴敊璇殑鍙兘鎬с(鎻愮ず: 涓嶈鐢ㄤ复鏃剁殑master.passwd鏂囦欢瑕嗙洊鍘熸湁鐨勬枃浠!).

Sysmerge(8)灏嗘墍鏈夎鏇挎崲鐨勬枃浠跺瓨鍦ㄤ竴涓复鏃剁洰褰曞唴, 鏈夌偣鍍 /var/tmp/sysmerge.24959/backups, 鎵鏈夊鏋滀綘涓嶅皬蹇冩悶涔变簡浠涔, 浣犺繕鏈夋満浼氬鍘熷畠銆傛敞鎰忎娇鐢 daily(8) 鍛戒护鍙粠杩欎釜鐩綍涓竻闄ゅ氨鏂囦欢銆

4. 妫鏌ュ唴鏍

璇存槑: 澶ч儴鍒嗙敤鎴峰彲浠ヨ烦杩囪繖姝!

濡傛灉浣犳寜鐓т笉瀹夎鍐呮牳鐨勮鏄庡崌绾х郴缁, 浣犲凡缁忓仛瀹岃繖涓姝ヤ簡銆 鐒惰, 濡傛灉浣犱娇鐢4.5鐨勫畨瑁呭唴鏍, 骞朵笖浣犳湁涓涓慨鏀硅繃鐨4.4鍐呮牳, 寰堟湁鍙兘浣犻渶瑕佹洿鏀4.5鐨勫師鏈夊唴鏍搞傝繖灏卞儚鐢 config(8)淇敼涓涓壒瀹氳澶囬偅鏍风畝鍗, 鎴栬呭鏋滀竴涓夐」娌℃湁鍖呭惈鍦℅ENERIC鍐呮牳鍐呭畠鍙互鍖呭惈涓涓噸鏂扮紪璇戙傚湪鍑嗗閲嶆柊缂栬瘧浣犵殑鍐呮牳鍓嶈鍙傞槄 FAQ 5 - 浠庢簮鐮佹瀯寤虹郴缁

5. 鍗囩骇 packages

濡傛灉浣犲湪浣犵殑绯荤粺涓婂畨瑁呬换浣昿ackages, 浣犲簲璇ュ湪鍩烘湰绯荤粺瀹屾垚鍗囩骇鍚庡崌绾ц繖浜沺ackages銆 瑕佹敞鎰, 涓嶇鎬庢牱, 璁稿packages鍦ㄥ崌绾у墠鍜/鎴栧崌绾у悗闇瑕佽繘涓姝ョ殑璁剧疆, 璇锋鏌ヨ繖涓簺package鐨勫崌绾ф寚鍗椾互渚胯幏鍙栨洿璇﹀敖鐨勪俊鎭

鐩墠宸茬粡鐭ラ亾寰堝鐢ㄦ埛鍦ㄥ崌绾т笅鍒梡ackages鏃跺嚭鐜颁弗閲嶉棶棰樸 娌℃湁鍦ㄦ鍒楀嚭鐨刾ackage骞朵笉鎰忓懗鐫灏卞彲浠ラ『鍒╁崌绾с 浣犲繀椤昏嚜宸辨祴璇曚竴涓嬩綘鐨勭▼搴忋

package宸ュ叿鏀寔浣跨敤 pkg_add -u 鍛戒护灏卞湴鏇存柊銆 渚嬪, 鏇寸粏浣犳墍鏈夌殑packages, 鍒繕浜嗘妸PKG_PATH鎸囧悜CD鎴朏TP鏈嶅姟鍣ㄤ笂鐨4.5鐗堟湰鐨勭殑packages鐩綍, 浣跨敤绫讳技濡備笅鐨勫懡浠

# pkg_add -ui -F update -F updatedepends
杩欓噷 -u 鎸囧畾浜嗘洿鏂版ā寮, -i 鎸囧畾浜嗕氦浜掓ā寮, 鎵浠 pkg_add 鍦ㄩ亣鍒颁笉鏄庣‘鐨勫湴鏂逛細鎻愮ず浣犺緭鍏ラ夋嫨銆 璇烽槄璇 pkg_add(1) 鐢ㄦ埛鎵嬪唽浠ュ強FAQ涓 package绠$悊 閭g珷銆

浠ュ線涓浜汸erl鐨勬ā鍧楀湪packages涓彁渚, 鐜板湪宸茬粡鍖呭惈鍦ㄥ熀鏈郴缁熺殑Perl 5.10.0鍐, 鎵浠鏇存柊瀹屽叾瀹冪殑杞欢鍖(packages)鍚, 杩欎簺鍘熸潵鍖呭惈perl妯″潡鐨刾ackages蹇呴』鍒犻櫎銆傚彟澶, xcompmgr(1) 鐜板湪宸茬粡鍖呭惈鍦ㄧ郴缁熺粍浠 xbase45.tgz 鍐, 涓嶅啀鏄竴涓猵ackage, 鎵浠ュ畠涔熷繀椤昏鍒犻櫎銆

pkg_delete p5-Archive-Tar p5-Compress-Raw-Zlib p5-Compress-Zlib \
p5-IO-Compress-Base p5-IO-Compress-Zlib p5-IO-Zlib p5-Module-Build \
p5-Module-CoreList p5-Module-Load p5-version p5-Digest-SHA \
p5-Locale-Maketext-Simple p5-Pod-Escapes p5-Pod-Simple \
p5-ExtUtils-ParseXS p5-ExtUtils-CBuilder p5-Module-Pluggable \
p5-Time-Piece p5-Module-Loaded xcompmgr
娉ㄦ剰: 濡傛灉浣犳嫹璐濆拰绮樿创杩欎簺鍛戒护鍒颁綘鐨勭郴缁熻繍琛屾椂, 濡傛灉浣犳病鏈夊畨瑁呰繖浜涜蒋浠朵細寰楀埌寰堝鐨勯敊璇俊鎭, 浣嗚繖瀵圭郴缁熸病鏈変激瀹炽

[3.4 -> 3.5] | [3.5 -> 3.6] | [3.6 -> 3.7] | [3.7 -> 3.8] | [3.8 -> 3.9] | [3.9 -> 4.0] |
[4.0 -> 4.1] | [4.1 -> 4.2] | [4.2 -> 4.3] | [4.3 -> 4.4] | [FAQ Index]


[back] www@openbsd.org
$OpenBSD: upgrade45.html, v 1.13 2009/04/02 23:36:47 nick Exp $