Skip to content

Instantly share code, notes, and snippets.

@ChaosEngine
Last active August 29, 2015 14:17
Show Gist options
  • Save ChaosEngine/406e6f85e300b30dbecf to your computer and use it in GitHub Desktop.
Save ChaosEngine/406e6f85e300b30dbecf to your computer and use it in GitHub Desktop.
portage-creation
PORTAGE_TARBALL="portage-latest.tar.xz"
wget http://distfiles.gentoo.org/snapshots/$PORTAGE_TARBALL /
mkdir -p /usr && xzcat /$PORTAGE_TARBALL | tar -xf - -C /usr \
&& mkdir -p /usr/portage/{distfiles,metadata,packages} \
&& chown -R portage:portage /usr/portage \
&& echo "masters = gentoo" > /usr/portage/metadata/layout.conf \
&& eselect news read new \
&& env-update \
&& rm -f /$PORTAGE_TARBALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment