1月12

使用portsnap更新port包源

| |
16:16FreeBSD  
使用方法:
#vi /etc/portsnap.conf //修改更新源
SERVERNAME=portsnap.hshh.org //将地址换成portsnap.hshh.org
几个常用的portsnap常用的国内服务器地址:
portsnap.hshh.org(电信)
portsnap2.hshh.org(电信)
portsnap3.hshh.org(网通)
还是那句话,哪台服务器最快选哪个吧。

portsnap简介:
portsnap从6.0开始引进系统,给与用户方便的更新系统ports,portsnap的命令比较少。

portsnap参数:
fetch 获取数据
extract 释放全部ports
update 更新ports

第一次使用可以执行:
#portsnap fetch extract
以后使用可以直接执行:
#portsnap fetch update
如果写在cron可以用
#portsnap cron update
阅读(190) | 评论(0) | 引用(0)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码  
网址   电邮   [注册]