鏡像列表
Gentoo 換源分兩塊:Portage 樹(軟體套件的 ebuild 與後設資料,推薦用 git 同步,也支援 rsync)和 Distfiles(軟體套件原始碼,走 HTTP,由 make.conf 的 GENTOO_MIRRORS 指定)。
下面是各節點的實測彙總表,每個鏡像支援什麼一目瞭然;具體配置見下方摺疊的教學。
推薦組合:用 git 同步 Portage 樹(增量更新、快又穩)+ 就近的 distfiles 源。不確定填哪個,照表裡離你近的地區選即可。
鏡像總覽
所有節點均逐項實測,✓ = 實測可用。distfiles 地址即 GENTOO_MIRRORS 要填的值;git / rsync 的具體同步地址見下方教學。
| 鏡像 | 地區 | distfiles 地址 | git | rsync |
|---|---|---|---|---|
| 清華 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 | ||
| 阿里雲 | 全國·CDN | https://mirrors.aliyun.com/gentoo | ||
| 網易 163 | 全國·CDN | https://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 源:
| 鏡像 | 同步地址 |
|---|---|
| 清華 TUNA | https://mirrors.tuna.tsinghua.edu.cn/git/gentoo-portage.git |
| 中科大 USTC | https://mirrors.ustc.edu.cn/gentoo.git |
| 浙大 ZJU | https://mirrors.zju.edu.cn/git/gentoo-portage.git |
| 南大 NJU | https://mirrors.nju.edu.cn/git/gentoo-portage.git |
| 北外 BFSU | https://mirrors.bfsu.edu.cn/git/gentoo-portage.git |
| 山大 SDU | https://mirrors.sdu.edu.cn/git/gentoo-portage.git |
| 華科 HUST | https://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://github.com/gentoo-mirror/gentoo.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 模組,可放心使用。| 鏡像 | 同步地址 |
|---|---|
| 清華 TUNA | rsync://mirrors.tuna.tsinghua.edu.cn/gentoo-portage |
| 中科大 USTC | rsync://rsync.mirrors.ustc.edu.cn/gentoo-portage |
| 北外 BFSU | rsync://mirrors.bfsu.edu.cn/gentoo-portage |
| 臺灣 NCHC | rsync://ftp.twaren.net/gentoo-portage |
| 香港 PlanetUnix | rsync://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 頁的「鏡像加速」。