修改FreeBSD的源为国内源
- 禁用原来的FreeBSD.conf
# ee /etc/pkg/FreeBSD.conf
将
enabled: yes
改为
enabled: no
保存(ESC, 然后 a -> a)即可
- 创建另外一个 FreeBSD.conf
# mkdir -p /usr/local/etc/pkg/repos
# touch /usr/local/etc/pkg/repos/FreeBSD.conf
这个是中科大的源
ustc:{
url: "pkg+http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/latest",
mirror_type: "srv",
signature_type: "none",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
还有另外一个源:
FreeBSD: {
url: "pkg+http://pkg1.chinafreebsd.cn/${ABI}/latest",
mirror_type: "srv", signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}