Gentoo Linux 的镜像配置方法如下:

Gentoo Portage 镜像配置:

rsync 方式

修改 /etc/portage/repos.conf/gentoo.conf ,将

sync-uri = rsync://rsync.gentoo.org/gentoo-portage

修改为

sync-uri = rsync://mirrors.tuna.tsinghua.edu.cn/gentoo-portage

git 方式

第一次使用 git 同步方式的用户需要进行如下操作:

  • 修改 /etc/portage/repos.conf/gentoo.conf - 将 sync-type 改为 git - 将 sync-uri 改为 https://mirrors.tuna.tsinghua.edu.cn/git/gentoo-portage.git
  • 删除 /var/db/repos/gentoo
  • 执行 emerge --sync

已经配置 git 同步的用户只需:

  • 修改 /etc/portage/repos.conf/gentoo.conf - 将 sync-uri 改为 https://mirrors.tuna.tsinghua.edu.cn/git/gentoo-portage.git
  • /var/db/repos/gentoo 下,执行 git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/gentoo-portage.git
  • 执行 emerge --sync

Distfiles 配置:

/etc/portage/make.conf 中加入:

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

配置好以上两项后,执行 emerge --sync 进行更新。

Gentoo Prefix Bootstrap 镜像配置:

在运行 Bootstrap 脚本之前,可通过设置以下环境变量选择 Bootstrap 过程中使用的镜像。

export GENTOO_MIRRORS="http://mirrors.tuna.tsinghua.edu.cn/gentoo"
export GNU_URL="http://mirrors.tuna.tsinghua.edu.cn/gnu"
export SNAPSHOT_URL="http://mirrors.tuna.tsinghua.edu.cn/gentoo/snapshots"

Bootstrap 成功后,若对 Gentoo Portage 和 Distfiles 换源,可参照以上几节,只需将 /etc 换成 $EPREFIX/etc

本站由清华大学信息化技术中心支持创办,由清华大学 TUNA 协会运行维护。

清华大学 TUNA 协会,全名清华大学学生网络与开源软件协会,是由清华大学热爱网络技术和开源软件的极客组成的学生技术社团。

本站相关源码可在 这里(镜像管理器)这里(镜像站网页) 获取。

根据相关法律法规,本站不对欧盟用户提供服务。

Contact Us

Sponsor

旷视 华为

本存储服务器由旷视科技有限公司(Megvii Technology Ltd.)赞助。TUNA 感谢旷视和华为对开源软件和社区的贡献。

本站由清华大学信息化技术中心支持创办,由清华大学 TUNA 协会运行维护。

清华大学 TUNA 协会,全名清华大学学生网络与开源软件协会,是由清华大学热爱网络技术和开源软件的极客组成的学生技术社团。

本站相关源码可在 这里(镜像管理器)这里(镜像站网页) 获取。

根据相关法律法规,本站不对欧盟用户提供服务。

Contact Us

Sponsor

旷视 华为

本存储服务器由旷视科技有限公司(Megvii Technology Ltd.)赞助。TUNA 感谢旷视和华为对开源软件和社区的贡献。

envelope hashtag github weibo