7.1-RELEASEにアップグレードしよう
それでは早速7.
ネットワークにつながったFreeBSDマシンにログインして,y
と答えつづけていればよい。
# freebsd-update -r 7.1-RELEASE upgrade
update.
Looking up update.FreeBSD.org mirrors... 2 mirrors found. Fetching public key from update2.FreeBSD.org... done. Fetching metadata signature for 7.0-RELEASE from update2.FreeBSD.org... done. Fetching metadata index... done. Fetching 2 metadata files... done. Inspecting system...
今回インストールするマシンには,y
と答える。
The following components of FreeBSD seem to be installed: kernel/generic src/base src/sys world/base world/dict world/doc world/games world/info world/manpages world/proflibs The following components of FreeBSD do not seem to be installed: src/bin src/cddl src/compat src/contrib src/crypto src/etc src/games src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue src/sbin src/secure src/share src/tools src/ubin src/usbin world/catpages Does this look reasonable (y/n)? y
アップグレードに必要なファイルのダウンロードがはじまる。10ヵ月の開発の成果でナント,
Fetching metadata signature for 7.1-RELEASE from update2.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 7.0-RELEASE for merging... done.
Preparing to download files... done.
Fetching 17815 patches.....10....20....30....40...(省略).17780....17790....17800....17810.. done.
Applying patches... done.
パッチ適用で終わったかと思いきや,
# freebsd-update -r 7.1-RELEASE upgrade
と入力することで,
次に,ZZ
Fetching 1649 files... done. Attempting to automatically merge changes in files... done. The following file could not be merged automatically: /etc/hosts Press Enter to edit this file in vi and resolve the conflicts manually...
同じ要領で,
Does this look reasonable (y/n)?
に対してy
と答えるだけでよい。変更するファイルのリストが出るので,q
でmoreから抜けて準備終了である。
The following files will be removed as part of updating to 7.1-RELEASE-p3:
/etc/rc.d/kernel
/usr/include/netgraph/atm/ng_atmpif.h
/usr/sbin/pkg_check
/usr/sbin/pkg_sign
/usr/share/doc/de_DE.ISO8859-1/books/handbook/portsnap.html
(省略)
この状態ではまだ
# freebsd-update -r 7.1-RELEASE install
としてカーネルの更新を行う。
Installing updates... Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates.
言われるままに再起動して,
# shutdown -r now
(再起動を待って,rootでログイン)
# freebsd-update install
筆者の環境で20分ほど待った後,
Installing updates... done.
再起動してメッセージを見ると,
# uname -a FreeBSD mitamachine 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
おわりに
アップデートに意外と時間を取られ,
これは10ヵ月にわたる開発の結果で,