2008年11月26日水曜日

(FreeBSD) freebsd-updateを初めて使ってみた

FreeBSDのアップデートは、これまで、make buildworldするか、sysinstallのupgrade installを使うかしてたんですが、昨日は、はじめて、freebsd-updateを使ってみました。
なんだか、妙に、時間がかかって、不安な感じになります。短時間で、ちゃちゃっと済ませたいのなら、sysinstallの方が短時間で済むような気がします。



まぁ、とりあえす、うまいこと、7.0-RELEASEを、7.1-BETA2にできました。7.1-RELEASEはいったいいつ出るのやら…



# freebsd-update -r 7.1-BETA2 upgrade
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 7.0-RELEASE from update1.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files...
Inspecting system... done.



WARNING: This system is running a "■■■■■■■" kernel, which is not a
kernel configuration distributed as part of FreeBSD 7.0-RELEASE.
This kernel will not be updated: you MUST update the kernel manually
before running "/usr/sbin/freebsd-update install".
~~~なんてことを言われてしまう~~~



The following components of FreeBSD seem to be installed:
src/base src/crypto src/sbin src/sys src/tools world/base world/dict
world/doc world/games world/info world/manpages



The following components of FreeBSD do not seem to be installed:
kernel/generic src/bin src/cddl src/compat src/contrib src/etc src/games
src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue
src/secure src/share src/ubin src/usbin world/catpages world/proflibs



Does this look reasonable (y/n)? y



Fetching metadata signature for 7.1-BETA2 from update1.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 6792 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190....200....210....220....230....240....250....260....270....280....290....300....310....320....330....340....350....360....370....380....390....400....410....420....430....440....450....460....470....480....490....500....510....520....530....540....550..





...6520....6530....6540....6550....6560....6570....6580....6590....6600....6610....6620....6630....6640....6650....6660....6670....6680....6690....6700....6710....6720....6730....6740....6750....6760....6770....6780....6790. done.
Applying patches...
Fetching 1500 files... done.
Attempting to automatically merge changes in files... done.

The following file could not be merged automatically: /etc/mail/sendmail.cf
Press Enter to edit this file in vi and resolve the conflicts
manually...

とか言われますが、cvs commitしてconflictしたときと同じような書式で表示されてました。



いったいどこに、sendmail.cfをviで編集できる人がいますか!と。。。

submit.cfでも言われた。以下同文。

sshd_configも、直せっていわれた。

あと、いろいろ聞かれた・・・けど、それにしても、このユーザーインターフェイスは、わっかりにくいなぁ~



こんなファイルが更新されるよ、と表示されますが、あまりにも大量に出てくるので、見るのも嫌になる。こんなの見せられても、見にくいだけで、はっきりいって無意味であると。



The following files will be removed as part of updating to 7.1-BETA2-p1:
/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
/usr/share/doc/el_GR.ISO8859-7/articles/dialup-firewall/x103.html
/usr/share/doc/el_GR.ISO8859-7/articles/dialup-firewall/x77.html
/usr/share/doc/el_GR.ISO8859-7/articles/formatting-media/x163.html
/usr/share/doc/el_GR.ISO8859-7/articles/formatting-media/x221.html
/usr/share/doc/el_GR.ISO8859-7/articles/formatting-media/x319.html
/usr/share/doc/el_GR.ISO8859-7/articles/freebsd-questions/x115.html
/usr/share/doc/el_GR.ISO8859-7/articles/freebsd-questions/x206.html
/usr/share/doc/el_GR.ISO8859-7/articles/freebsd-questions/x218.html
/usr/share/doc/el_GR.ISO8859-7/articles/freebsd-questions/x48.html
/usr/share/doc/el_GR.ISO8859-7/articles/freebsd-questions/x68.html
/usr/share/doc/el_GR.ISO8859-7/articles/freebsd-questions/x93.html
/usr/share/doc/el_GR.ISO8859-7/articles/laptop/x20.html
/usr/share/doc/el_GR.ISO8859-7/articles/laptop/x24.html
/usr/share/doc/el_GR.ISO8859-7/articles/laptop/x46.html
/usr/share/doc/el_GR.ISO8859-7/books/handbook/eresources-shell.html
/usr/share/doc/el_GR.ISO8859-7/books/handbook/ln21.html
/usr/share/doc/en_US.ISO8859-1/articles/contributors/misc.html
/usr/share/doc/en_US.ISO8859-1/articles/contributors/staff-core.html

たくさん表示されて・・・終わり。え?





実は、まだ新しいファイルはインストールされていなかったりする。わかりにくいなぁ。



# freebsd-update install
Installing updates...
Kernel updates have been installed.  Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.



とりあえずリブートします。ちゃんとブートする保障もないわけで、非常に不安。



あ、さっき、kernelを置き換えろみたいなことを言われてたけど、忘れちゃった。





リブート後。



もう一度、installを実行。



# freebsd-update install
Installing updates... done.



ここで、またかなり時間がかかる・・・う~ん





なんとなく、freebsd-updateって、個人的には、好きになれないなぁ。



インストールしたまんま、標準インストールのまんまで使っていく、というのなら、freebsd-updateでいいのかもしれません。







アップデート、アップグレードって、やっぱり問題が発生しやすいです。
いざとなったら、新規インストールで、以前の環境を短時間で再現できる技術、それを見につけておくのが、一番いいんじゃないかなぁ、とか思ってみたり。
何かトラブルがあったら新規インストール・・・それは、Windowsのことか。



0 件のコメント:

コメントを投稿