rsync 方式修改 /etc/portage/repos.conf/gentoo.conf ,将
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
修改为
sync-uri = rsync://mirrors.wars.cat/gentoo-portage
git 方式第一次使用 git 同步方式的用户需要进行如下操作:
/etc/portage/repos.conf/gentoo.conf - 将 sync-type 改为 git - 将 sync-uri 改为 https://mirrors.wars.cat/git/gentoo-portage.git/var/db/repos/gentooemerge --sync已经配置 git 同步的用户只需:
/etc/portage/repos.conf/gentoo.conf - 将 sync-uri 改为 https://mirrors.wars.cat/git/gentoo-portage.git/var/db/repos/gentoo 下,执行 git remote set-url origin https://mirrors.wars.cat/git/gentoo-portage.gitemerge --sync在 /etc/portage/make.conf 中加入:
GENTOO_MIRRORS="https://mirrors.wars.cat/gentoo"
配置好以上两项后,执行 emerge --sync 进行更新。
在运行 Bootstrap 脚本之前,可通过设置以下环境变量选择 Bootstrap 过程中使用的镜像。
export GENTOO_MIRRORS="http://mirrors.wars.cat/gentoo"
export GNU_URL="http://mirrors.wars.cat/gnu"
export SNAPSHOT_URL="http://mirrors.wars.cat/gentoo/snapshots"
Bootstrap 成功后,若对 Gentoo Portage 和 Distfiles 换源,可参照以上几节,只需将 /etc 换成 $EPREFIX/etc