跳至內容

鏡像列表

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://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 模組,可放心使用。
鏡像同步地址
清華 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 頁的「鏡像加速」