upgrade system 系統升級
(1)複製 /usr/share/example/cvsup/stable-supfile
(2)修改 stable-supfile 更改伺服器 host
(3)抓取source檔案 cvsup -g -L 2 stable-supfile
以下操作步驟為: 5.3-RELEASE 昇級到 5.5-STABLE , 請依照實際狀況適當修改
-- 請備份所有重要資料 --
(4) 仔細閱讀 /usr/src/UPDATING 內容 (尤其是此檔案的最後面幾段)
a.避免使用 make -j 參數 ,尤其是在做跨版本的更新時.
b.部分升級的問題是由於環境變數所造成 ,可透過 env -i 指令讓環境變數乾淨些
-i 除了特別指定的環境變數外,忽略所有由env繼承的環境變數.
-- 依照/usr/src/UPDATING指示操作 以下只是可能步驟--
(5)更新kernel
路徑: /usr/src
紅色表示指令 , 灰色表示可能的系統訊息
安裝編譯kernel
make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=你的kernel檔案
Kernel build for KERNEL名稱 completed on Tue Mar 24 23:11:15 CST 2009
make -DALWAYS_CHECK_MAKE installkernel KERNCONF=你的kernel檔案
kldxref /boot/kernel
buildworld
make buildworld
需要花些時間..晚點再看看了.
chmod 444 freebsd.submit.cf
安裝編譯kernel
make buildkernel KERNCONF=YOUR_KERNEL_HERE
Kernel build for WEBMAIL completed on Wed Mar 25 07:40:18 CST 2009
make installkernel KERNCONF=YOUR_KERNEL_HERE
kldxref /boot/kernel
重新開機以單人模式進入系統
reboot
執行preseedrandom程序
/etc/rc.d/preseedrandom
Pre-seeding PRNG : kickstart
設定檔整合
mergemaster -p
Create the temporary root environment in /var/tmp/temproot
mkdir: /var/tmp/temproot: Read-only file system
*** FATAL ERROR : Cannot create /var/tmp/temproot
若有遇到上述狀況 請透過 mount -a 即可.
*** Beginning comparison
*** Temp ./etc/master_passwd and installed have the same CVS Id , deleting
*** Temp ./etc/group and installed have the same CVS Id , deleting
*** Comparison complete
Do you wish to delete what is left of /var/tmp/temproot? [no] yes
*** /var/tmp/temproot has been deleted
*** Comparing make variables
*** From /etc/make.conf
*** From /usr/src/share/examples/etc/make.conf
PERL_VER=5.8.6
* No example variable with this name
PERL_VERSION=5.8.6
* No example variable with this name
MASTER_SITE_BACKUP?= \
* No example variable with this name
MASTER_SITE_OVERRIDE? = ${MASTER_SITE_BACKUP}
* No example variable with this name
安裝編譯好的source
make installworld (路徑: /usr/src)
大約1~2分鐘
rm -rf /tmp/install.Prbl8664
設定檔整合
mergemaster
使用 d 來刪除新的檔案 i 安裝新檔案 m 用以合併新舊檔案 v 重新看一次新舊檔案差異
Use 'd' to delete the temporary ./etc/bluetooth/hosts
Use 'i' to install the temporary ./etc/bluetooth/hosts
Use 'm' to merge the temporary ./etc/bluetooth/hosts
Use 'v' to view the diff result again
Default is to leave the temporary file to deal with by hand
How should I deal with this? [Leave it for later]
請依照實際狀況 若不知道的請按 i , 若有使用的請斟酌用 d 或是 m .
不斷的檢查檔案
*** Comparison complete
Do you wish to delete what is left of /var/tmp/temproot ? [no] yes
若確認都修改好了 就輸入 yes 吧.
*** /vat/tmp/temproot has been deleted
重新開機
reboot
確認功能及版號
uname -a
有圖有真相 

--
舊有網站資料:
http://ohaha.ks.edu.tw/old_site/upgrade_source.htm -- 更新source
http://ohaha.ks.edu.tw/old_site/upgrade_system.htm -- 編譯安裝 source
FreeBSD handbook
http://www.freebsd.org/doc/en/books/handbook/makeworld.html
upgrade system 系統升級
1 迴響 |
0 引用
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
官方手冊的作法.