FreeBSD使用CVSup升级Ports笔记
Devel Notes February 24th, 2009 421 Viewsgoogle了一下了解到CVSup升级有两种:
一个是 /usr/ports/net/cvsup/
另一个是(无图版)/usr/ports/net/cvsup-without-gui
这里我只说cvsup-without-gui的安装与配置使用。
#cd /usr/ports/net/cvsup-without-gui #make install clean
等待完成就可以了。
安装完CVSup后 默认是装在了
/usr/local/bin 下的 cvsup
如果想直接执行cvsup不想加路经只需要将它做个连接到 /usr/bin下
#ln -f /usr/local/bin/cvsup /usr/bin/cvsup
接下来进入CVSup的配置
#cd /usr/share/examples/cvsup #vi ports-supfile
打开后出现基本的说明和主要部分
*default host=CHANGE_THIS.FreeBSD.org 告诉 cvsup 从哪里获取更新 *default base=/var/db *default prefix=/usr 告诉 cvsup 把接收的文件放在哪里 *default release=cvs tag=. *default delete use-rel-suffix 删除cvsup创建的并在cvs中删除掉的文件 ...... ## Ports Collection. # # The easiest way to get the ports tree is to use the "ports-all" # mega-collection. It includes all of the individual "ports-*" # collections, #ports-all # These are the individual collections that make up "ports-all". If you # use these, be sure to comment out "ports-all" above. # # Be sure to ALWAYS cvsup the ports-base collection if you use any of the # other individual collections below. ports-base is a mandatory collection # for the ports collection, and your ports may not build correctly if it # is not kept up to date. #ports-base #ports-accessibility #ports-arabic #ports-archivers #ports-astro #ports-audio #ports-benchmarks #ports-biology #ports-cad #ports-chinese #ports-comms #ports-converters #ports-databases #ports-deskutils #ports-devel #ports-dns #ports-editors #ports-emulators #ports-finance #ports-french #ports-ftp #ports-games #ports-german #ports-graphics #ports-hebrew #ports-hungarian #ports-irc #ports-japanese #ports-java #ports-korean #ports-lang #ports-mail #ports-math #ports-mbone #ports-misc #ports-multimedia #ports-net #ports-net-im #ports-net-mgmt #ports-net-p2p #ports-news #ports-palm #ports-polish #ports-ports-mgmt #ports-portuguese #ports-print #ports-russian #ports-science #ports-security #ports-shells #ports-sysutils #ports-textproc #ports-ukrainian #ports-vietnamese #ports-www #ports-x11 #ports-x11-clocks #ports-x11-drivers #ports-x11-fm #ports-x11-fonts #ports-x11-servers #ports-x11-themes #ports-x11-toolkits #ports-x11-wm
以上的配置中ports-all更新全部Ports(这个要注意一下,默认值就是它,将会更新你的全部Ports,若你只需要更新某个Ports目录,就将它前面加#注释掉),比如以上配置我需要更新java的Ports目录只需要去掉#ports-java前面的#就可以了。
修改完ports-supfile后保存,执行
#cvsup -g -L 2 ports-supfile
就可以开始更新了。
附上CVSup更新服务器地址列表:http://www.21andy.com/blog/20071102/653.html

Recent Comments