Building chroots with yum

Building CHROOTs with Yum in a single command:

yum --releasever=7 --installroot=/chroot/jail2 -y install httpd

Will install httpd with all its dependancies. If you are on x86_64 and want a 32 bit chroot:

setarch i386 yum --releasever=6 --installroot=/chroot/jail32 -y install httpd