mirror of
https://github.com/Kxsso/jcutmirror.git
synced 2026-03-27 15:27:02 +08:00
31 lines
903 B
Plaintext
31 lines
903 B
Plaintext
---
|
|
mirrorId: gentoo
|
|
---
|
|
|
|
本仓库是 Gentoo 的 Stage 3 镜像。
|
|
|
|
### Distfiles 配置
|
|
|
|
在 `/etc/portage/make.conf` 中加入:
|
|
|
|
```conf
|
|
GENTOO_MIRRORS="https://mirrors.jcut.edu.cn/gentoo"
|
|
```
|
|
|
|
关于 Portage 配置可以参考 [Gentoo Portage 镜像](/docs/gentoo-portage/)。
|
|
|
|
配置好 Portage 与 Distfiles 后,执行 `emerge --sync` 进行更新。
|
|
|
|
### Gentoo Prefix Bootstrap 镜像配置
|
|
|
|
在运行 Bootstrap 脚本之前,可通过设置以下环境变量选择 Bootstrap 过程中使用的镜像。
|
|
|
|
```bash
|
|
export GENTOO_MIRRORS="https://mirrors.jcut.edu.cn/gentoo"
|
|
export SNAPSHOT_URL="https://mirrors.jcut.edu.cn/gentoo/snapshots"
|
|
# export GNU_URL="http://mirrors.jcut.edu.cn/gnu"
|
|
```
|
|
|
|
`GNU_URL` 的具体设置可以参考 [GNU 帮助](/docs/gnu/)。
|
|
|
|
Bootstrap 成功后,若对 Gentoo Portage 和 Distfiles 换源,可参照以上几节,只需将 `/etc` 换成 `$EPREFIX/etc` |