How to Create a GENTOO Distro CHROOT ENVIRONMENT
This article describes how to build a chroot environment for Gentoo distribution.
NOTE: Debian GNU/Linux will be our host system, but these steps should also work for most other Linux based distributions (e.g: Ubuntu).
DOWNLOAD A SMALL MINIMUM GENTOO SYSTEM
First we are going to download a minimal Gentoo system, called STAGE3.
We choose our architecture, in my case x86, and i686 specifically.
http://mirrors.kernel.org/gentoo/releases/x86/autobuilds/current-stage3/
$ wget http://mirrors.kernel.org/gentoo/releases/x86/autobuilds/current-stage3/stage3-i686-*.tar.bz2
There is a list of mirrors here: http://www.gentoo.org/main/en/mirrors.xml
We could download directly from gentoo page too:
$ wget ftp://distfiles.gentoo.org/pub/gentoo/releases/x86/current-stage3/stage3-i686-*.tar.bz2
BUILDING OUR GENTOO DIRECTORY
We create a directory where we will place Gentoo files: