首页 > 代码库 > freebsd的port源备忘

freebsd的port源备忘

国内freebsd的pkg10的源都没有,因此用port的试试

 

配置portsnap

vi /etc/portsnap.conf

修改

SERVERNAME=portsnap.hshh.org

执行

portsnap fetch extract

 

修改镜像地址

vi /etc/make.conf

 

改成

MASTER_SITE_FREEBSD_ORG = ftp://ftp.cn.FreeBSD.org/pub/FreeBSD/%SUBDIR%/MASTER_SITE_LOCAL = ftp://ftp.cn.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/MASTER_SITE_OVERRIDE = ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/

 

下载工具换成axel,还是make.conf

FETCH_CMD=axelFETCH_BEFORE_ARGS= -n 10 -aFETCH_AFTER_ARGS= DISABLE_SIZE=yes

 

freebsd的port源备忘