论坛: UNIX系统 标题: 最好不要轻易升级内核(ZT) 复制本贴地址    
作者: SimpleLove [ydf]    论坛用户   登录
最好不要轻易升级内核   

--------------------------------------------------------------------------------

I have seen the question, "How do I upgrade the kernel in FreeBSD?" posted may times in many places. The simple answer to this question is you don't.

Many FreeBSD users come from a Linux background and they expect that they can upgrade the kernel in FreeBSD the same way they have in Linux.

However, if you upgrade only the kernel in FreeBSD things will break. FreeBSD was designed to be upgraded as a whole OS and not just the kernel.

地主 发表时间: 10/19 14:43

回复: NetDemon [netdemon]   ADMIN   登录
通常,内核需要重新配置,编译,以能更好的适应你的某些特殊要求

如果你升级了源代码,那么需要整个系统重新编译,而不只是内核,FreeBSD作为一个完整的操作系统,有些命令对内核是有依赖的。如:ps top 等。

在freebsd上升级整个系统是如此的简单,比Windows Update更简单
#cvsup -h cvsup.freebsdorg /usr/share/examples/cvsup/stable-supfile (更新源代码树为稳定版)


#cvsup -h cvsup.freebsdorg /usr/share/examples/cvsup/standard-supfile (更新源代码树为当前版)

然后
#cd /usr/src
#make world

两个命令就完成了,付出的体力劳动远远小于WindowsUpdate的用鼠标点啊点....

ps:我喜欢make world这个词。当你对计算机发出'创造世界'的命令,就真的给你创造一个全新的世界。并且不影响原来这个世界上的其他东西,我想,这是一个连上帝都羡慕的命令。当你打下这个命令,你是不是有点上帝的感觉呢?嗬嗬~~,可是,上帝并不好当,我通常在更新了代码之后都要看一下有没有更新的内核选项,并编辑内核配置文件,导致经常需要把make world分开为几步来做

B1层 发表时间: 10/19 15:55

回复: enegy [enegy]   论坛用户   登录
高手对话,看不懂。

B2层 发表时间: 10/20 17:48

论坛: UNIX系统

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号