- 禁用原来的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
}