首页 / 全部帮助 / 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。
本站信息
本页由镜像元数据自动生成;旧版交互式选项(HTTPS 开关、线路选择、命令生成器)已下线,命令统一以本站「换源指南」为准。
需要把这套源换成本站镜像?命令与注意事项见 换源指南 · gentoo-portage.git。
怎么用
- 本页提供 换源命令,可直接复制执行。
- 目录直链为 /gentoo-portage.git/,目录可长期收藏,子路径随上游同步更新。
- 本站为被动镜像:上游更新后自动同步,无需在此申请;若发现某个文件缺失,多半是上游尚未同步完成。
联系与反馈:rx@sau.edu.cn · 站内新闻