昨天为了ports安装pear-1.9.0在google、baidu上找了很久也没找到tar.bz包,就用cvs系统更新ports和源代码,记录如下:
ftp ftp.freebsd.org
用户名:anonymous
邮箱:随便输入@xx.com
bin
cd /pub/FreeBSD/ports/i386/packages-8.1-release/net
mget cvsup*
pkg_add cvsup-without-gui-16.1h_2.tbz
cp /usr/share/examples/cvsup/ports-supfile /root
cp /usr/share/examples/cvsup/standard-supfile /root
cd /root
vi ports-supfile
vi standard-supfile
change:
*default host=CHANGE_THIS.FreeBSD.org
to:
*default host=cvsup2.FreeBSDChina.org or cvsup14.us.FreeBSD.org
:wq
/usr/local/bin/./cvsup -g -L 2 ports-supfile
/usr/local/bin/./cvsup -g -L 2 standard-supfile
cd /usr/src
make buildworld kernel installworld
reboot
然后重新启动。如果你定制了内核,例如它的配置名为MYKERNEL,则: make KERNCONF=MYKERNEL buildworld kernel installworld
(example:
-su-2.05b# cd /usr/src
-su-2.05b# uname -a
FreeBSD www.itkylin.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Fri Jun 5 29:24:12 CST 2011 [email protected]:/usr/src/sys/compile/proxy i386
-su-2.05b# make KERNCONF=proxy buildworld kernel installworld
-su-2.05b# reboot