Skip to content

Commit ba6bdc7

Browse files
committed
mirrors: bestbind and freebsd-pkg
1 parent 8d2b6b4 commit ba6bdc7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/services/mirrors/repos.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525

2626
另外,`bindIP` 不适用于所有的同步镜像(一部分程序不支持修改 `bind()` 的参数),此时可以使用基于 Docker Network 的 `network` 配置。
2727

28+
!!! example "使用 bestbind 找到最佳的 freebsd-pkg 上游"
29+
30+
```shell
31+
dig +short _http._tcp.pkg.all.freebsd.org srv | cut -d ' ' -f 4 > freebsd
32+
for i in $(cat freebsd); do echo $i; bestbind "http://$i/FreeBSD:15:amd64/quarterly/All/virtualbox-ose-71-7.1.12_1.pkg"; done
33+
```
34+
2835
写好新仓库的配置文件之后运行 `yuki reload`,然后 `yuki sync <repo>` 就可以开始初次同步了。
2936

3037
### 为 Git 类型仓库添加软链接至 `/srv/git` {#git}

0 commit comments

Comments
 (0)