修改更新源地址

  1. 2.2.16 版本之前的配置:
SYNC="rsync://rsync.cn.gentoo.org/gentoo-portage/"
  1. 新版本若没有配置会提示:
!!! SYNC setting found in make.conf.
    This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf
  1. 新版本配置,编辑 /etc/portage/make.conf 删除原来的 SYNC="...." 这行,然后执行以下命令:
mkdir /etc/portage/repos.conf
cp /usr/share/portage/config/repos.conf /etc/portage/repos.conf/gentoo.conf
vi /etc/portage/repos.conf/gentoo.conf
# 增加上面的镜像地址

参考链接:https://wiki.gentoo.org/wiki/Project:Portage/Sync

修改 PORTDIR

  1. 修改 /etc/portage/make.conf
PORTDIR="/user/portage"
  1. 创建新位置目录:mkdir /user/portage
  2. 修改用户和用户组属性:chown portage:portage /user/portage
  3. 迁移数据:mv -p /usr/portage/* /user/portage/
  4. 更新:emerge --sync

注意:如果 make.conf 丢失,查看 eselect profile list,并选择 [28] default/linux/arm/13.0/armv7a

eselect profile set 28

更新 Portage

  1. 查看当前版本:
# emerge -V
Portage 2.2.8-r2 (default/linux/arm/13.0/armv7a, gcc-4.8.3, glibc-2.19-r1, 3.4.103 armv7l)
  1. 更新版本使用:emerge --oneshot portage
  2. 更新后版本:
# emerge -V
Portage 2.2.20.1 (python 2.7.7-final-0, default/linux/arm/13.0/armv7a, gcc-4.8.3, glibc-2.19-r1, 3.4.103 armv7l)