FreeBSD 修改国内 pkg 源

2022-10-27 14:59:49 浏览数 (2)

代码语言:javascript复制
mkdir -p /usr/local/etc/pkg/repos

vi /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
}

mv /etc/pkg/FreeBSD.conf /etc/pkg/FreeBSD.conf.bak

pkg update -f

pkg install vim

0 人点赞