Gentoo Portage Repository Mirror Usage Guide
info
Some content in this document may have been translated by AI.
Introduction
Portage is the official package manager and distribution system for Gentoo. It provides advanced dependency resolution, flexible building and installation of software from source code or binary packages, and other features. Portage configures software from the Gentoo ebuild repository, additional ebuild repositories, or binhosts. This mirror repository mirrors the Gentoo Portage Ebuild repository using Git synchronization.
Usage
Manual Configuration
Please configure in /etc/portage/repos.conf/gentoo.conf with the following content:
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = https://mirrors.hust.edu.cn/git/gentoo-portage.git
auto-sync = yes
Then execute the following commands:
For first-time Git synchronization, please execute:
# Remove local main tree directory
rm -rf /var/db/repos/gentoo
# Resynchronize
emerge --sync
Otherwise, please execute:
# Enter main tree directory
cd /var/db/repos/gentoo
# Set remote URL to HUST mirror source
git remote set-url origin https://mirrors.hust.edu.cn/git/gentoo-portage.git
# Resynchronize
emerge --sync