Gentoo Portage Git
使用方法
第一次使用 git 同步方式的用户需要进行如下操作:
-
修改
/etc/portage/repos.conf/gentoo.conf- 将
sync-type改为git - 将
sync-uri改为https://mirrors.ha.edu.cn/git/gentoo-portage.git
- 将
- 删除
/var/db/repos/gentoo - 执行
emerge --sync
已经配置 git 同步的用户只需:
-
修改
/etc/portage/repos.conf/gentoo.conf- 将
sync-uri改为https://mirrors.ha.edu.cn/git/gentoo-portage.git
- 将
-
于
/var/db/repos/gentoo下,执行git remote set-url origin https://mirrors.ha.edu.cn/git/gentoo-portage.git -
执行
emerge --sync