首页 / 全部帮助 / gentoo-portage.git

Gentoo Portage Git

未知 操作系统 — 更新 —

说明

项目简介

Gentoo ebuild 仓库包含 Portage 用于解析和构建软件包的 ebuild 与元数据。

相应镜像只提供该仓库的 Git 同步服务。

rsync 同步配置见Gentoo Portage 帮助。

Distfiles(软件源代码文件)与二进制包镜像的配置见Gentoo 帮助。

使用方法

从 rsync 切换到 Git 或修改镜像

安装eselect-repository:

emerge --ask app-eselect/eselect-repository

删除现有的 Gentoo ebuild 仓库配置和本地副本,再使用相应镜像添加 Git 仓库:

eselect repository remove -f gentoo
eselect repository add gentoo git https://mirrors.sau.edu.cn/git/gentoo-portage.git

同步 Gentoo ebuild 仓库:

emaint sync -r gentoo

不同镜像的同步进度可能不同;更换 Git 镜像时,建议使用上述方法删除并重新添加仓库。

手动从 rsync 切换或更换镜像

系统默认配置文件位于/etc/portage/repos.conf/gentoo.conf,只需修改sync-uri与sync-type。

通过eselect-repository生成的配置位于/etc/portage/repos.conf/eselect-repo.conf。

完整配置示例:

[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = https://mirrors.sau.edu.cn/git/gentoo-portage.git

首次从 rsync 切换到 Git 或更换镜像时,删除现有的本地仓库并重新同步:

rm -rf /var/db/repos/gentoo
emaint sync -r gentoo

配置原理和排障方法见Portage with Git。

本站信息

镜像目录/gentoo-portage.git/
上游—
分类操作系统
最近同步—

本页由镜像元数据自动生成;旧版交互式选项(HTTPS 开关、线路选择、命令生成器)已下线,命令统一以本站「换源指南」为准。

需要把这套源换成本站镜像?命令与注意事项见 换源指南 · gentoo-portage.git。

怎么用

联系与反馈:rx@sau.edu.cn · 站内新闻