注意
下記手順は行儀がよろしくないので、 @wjn さんの記事を参考にすることをおすすめします。
https://github.com/gentoo/gentoo-portage-rsync-mirror に書いてある
手順
-
portage-9999 にする (2.2.16 以上の必要がある)
sudo emerge '=sys-apps/portage-9999'
-
repos.conf を変更する
sudo $EDITOR /etc/portage/repos.conf # repos.conf [gentoo] location = /usr/portage sync-type = git sync-uri = https://github.com/gentoo/gentoo-portage-rsync-mirror auto-sync = true
-
/usr/portage を git 管理にする
sudo rm -rf /usr/portage sudo eix-sync