跳至内容

镜像列表

Gentoo 换源分两块:Portage 树(软件包的 ebuild 与元数据,推荐用 git 同步,也支持 rsync)和 Distfiles(软件包源码,走 HTTP,由 make.confGENTOO_MIRRORS 指定)。

下面是各节点的实测汇总表,每个镜像支持什么一目了然;具体配置见下方折叠的教程。

推荐组合:用 git 同步 Portage 树(增量更新、快又稳)+ 就近的 distfiles 源。不确定填哪个,照表里离你近的地区选即可。

镜像总览

所有节点均逐项实测,✓ = 实测可用。distfiles 地址GENTOO_MIRRORS 要填的值;git / rsync 的具体同步地址见下方教程。

镜像地区distfiles 地址gitrsync
清华 TUNA华北·北京https://mirrors.tuna.tsinghua.edu.cn/gentoo
北外 BFSU华北·北京https://mirrors.bfsu.edu.cn/gentoo
中科大 USTC华东·合肥https://mirrors.ustc.edu.cn/gentoo
浙大 ZJU华东·杭州https://mirrors.zju.edu.cn/gentoo
南大 NJU华东·南京https://mirrors.nju.edu.cn/gentoo
山大 SDU华东·青岛https://mirrors.sdu.edu.cn/gentoo
华科 HUST华中·武汉https://mirrors.hust.edu.cn/gentoo
南科大 SUSTech华南·深圳https://mirrors.sustech.edu.cn/gentoo
哈工大 HIT东北·哈尔滨https://mirrors.hit.edu.cn/gentoo
兰大 LZU西北·兰州https://mirror.lzu.edu.cn/gentoo
阿里云全国·CDNhttps://mirrors.aliyun.com/gentoo
网易 163全国·CDNhttps://mirrors.163.com/gentoo
CERNET全国·就近https://mirrors.cernet.edu.cn/gentoo
CICKU香港https://hk.mirrors.cicku.me/gentoo
PlanetUnix香港https://hippocamp.cn.ext.planetunix.net/pub/gentoo
xTom香港https://mirror.xtom.com.hk/gentoo
Rackspace香港https://mirror.rackspace.com/gentoo
aditsu香港http://gentoo.aditsu.net:8000(HTTP)
NCHC台湾http://ftp.twaren.net/Linux/Gentoo
CICKU台湾https://tw.mirrors.cicku.me/gentoo
Freedif新加坡https://mirror.freedif.org/gentoo
CICKU新加坡https://sg.mirrors.cicku.me/gentoo
PlanetUnix新加坡https://enceladus.sg.ext.planetunix.net/pub/gentoo

配置教程

① git 同步 Portage 树(推荐)

实测可用的 git 源:

镜像同步地址
清华 TUNAhttps://mirrors.tuna.tsinghua.edu.cn/git/gentoo-portage.git
中科大 USTChttps://mirrors.ustc.edu.cn/gentoo.git
浙大 ZJUhttps://mirrors.zju.edu.cn/git/gentoo-portage.git
南大 NJUhttps://mirrors.nju.edu.cn/git/gentoo-portage.git
北外 BFSUhttps://mirrors.bfsu.edu.cn/git/gentoo-portage.git
山大 SDUhttps://mirrors.sdu.edu.cn/git/gentoo-portage.git
华科 HUSThttps://mirrors.hust.edu.cn/git/gentoo-portage.git
GitHub(国外)https://github.com/gentoo-mirror/gentoo.git

第一次改用 git 同步:编辑 /etc/portage/repos.conf/gentoo.conf

[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = https://mirrors.bfsu.edu.cn/git/gentoo-portage.git
auto-sync = yes

删掉旧的 rsync 目录后再同步:

rm -rf /var/db/repos/gentoo
emerge --sync

已经在用 git、只想换源:改上面的 sync-uri,再到仓库目录把 git remote 一起指过去:

cd /var/db/repos/gentoo
git remote set-url origin <新的 sync-uri>
emerge --sync
② rsync 同步 Portage 树
不少镜像只提供 git / distfiles,并不开 rsync。下面这些已实测能列出 gentoo-portage 模块,可放心使用。
镜像同步地址
清华 TUNArsync://mirrors.tuna.tsinghua.edu.cn/gentoo-portage
中科大 USTCrsync://rsync.mirrors.ustc.edu.cn/gentoo-portage
北外 BFSUrsync://mirrors.bfsu.edu.cn/gentoo-portage
台湾 NCHCrsync://ftp.twaren.net/gentoo-portage
香港 PlanetUnixrsync://hippocamp.cn.ext.planetunix.net/gentoo-portage

编辑 /etc/portage/repos.conf/gentoo.conf,把 sync-uri 指向上面任一地址:

[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://mirrors.bfsu.edu.cn/gentoo-portage
auto-sync = yes

然后执行 emerge --sync

③ Distfiles 配置(GENTOO_MIRRORS)

/etc/portage/make.conf 中填入总览表里的 distfiles 地址,可填多个(Portage 按顺序尝试,前面的优先):

GENTOO_MIRRORS="https://mirrors.bfsu.edu.cn/gentoo https://mirrors.tuna.tsinghua.edu.cn/gentoo https://mirrors.ustc.edu.cn/gentoo"

配好 Portage 与 Distfiles 后,执行 emerge --sync 更新。

官方完整列表见 下载镜像rsync 镜像。社区 overlay 的换源见 Overlay 页的「镜像加速」