Table of Contents
Portage synchronization using Git.
Upgrading portage.
Until Portage >= 2.2 stabilizes you need to add appropriate keyword.
Upgrading portage
echo '<sys-apps/portage-2.3.0 **' >> /etc/portage/package.keywords emerge -1 portage
Also add Portage SYNC variable to make.conf.
SYNC command in make.conf
echo 'SYNC="git://git.calculate.ru/calculate/portage.git"' >> /etc/make.conf
Setting up portage.
Clone Git repo with recent history of portage tree.
Setting up Git portage
rm -rf /usr/portage git clone --branch=master --depth=1 -- git://git.calculate.ru/calculate/portage.git /usr/portage mkdir /usr/portage/packages
Portage Synchronization.
Portage and metadata might be synchronized by this way. Metadata must be updated after each eix-sync run.
Sync portage
eix-sync
# egencache --repo=gentoo --update --jobs=$((`grep "^processor" /proc/cpuinfo | wc -l`+1)) # # Only for Git servers without metadata
Portage Overlays.
If you have an overlay for example in /usr/local/portage you need to set it's name like this.
Portage repo name
mkdir -p /usr/local/portage/profiles && echo gentoo_overlay > /usr/local/portage/profiles/repo_name