Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.21 KB

2020-02-21-gentoo-prefix.md

File metadata and controls

38 lines (26 loc) · 1.21 KB
category layout mirrorid
help
help
gentoo-portage-prefix

注意:Gentoo Prefix Portage tree 已合并进 gentoo.git。如果您是 Linux 用户,请使用 gentoo-portage rsync 或 git 镜像。此 repo 专为 macOS 下 prefix 用户而设。

Gentoo Prefix macOS 的镜像配置方法如下:

Bootstrap 镜像配置:

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

export GENTOO_MIRRORS="http://{{ site.hostname }}/gentoo"
export GNU_URL="http://{{ site.hostname }}/gnu"
export SNAPSHOT_URL="http://{{ site.hostname }}/gentoo/snapshots"

Gentoo Portage Prefix 镜像配置:

$EPREFIX/etc/portage 目录下创建名为 repos.conf 的目录,在 $EPREFIX/etc/portage/repos.conf/gentoo.conf 中加入如下内容:

[gentoo_prefix]
sync-uri = rsync://{{ site.hostname }}/gentoo-portage-prefix

Distfiles 配置:

这部分与在 Gentoo Linux 中配置无异,在 $EPREFIX/etc/portage/make.conf 中加入:

GENTOO_MIRRORS="https://{{ site.hostname }}/gentoo"

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