Hi folks,
        I'm trying to write some howtos.  For Debian lots of things
are easy (because that's what I use everyday).  For
RedHat/CentOS/Fedora, I want to create an environment I can play in --
a chroot environment using yum, and so  on.

        How can I install the bare minimum --- something like the
result of debootstrap --- just enough to run yum?  As it'll be in a
chroot I don't need any network utilities, etc,

Here's what I tried:

        Boot qemu on an empty disc using the first installation
        cdrom.  Install with everything possible turned off.  The result was
        over 1G, and stuff like X libraries, spelling checkers in x86 and
        x86_64 versions,  etc., were still installed.  In fact there were quite
        a few x86 versions of things installed unnecessarily.  I did a yum
        remove *.i386 and removed 60 packages straight away.

        I could then shutdown qemu, loopback mount the filesystem and
        copy the files into a directory ready for chroot.

But I'm sure there's other unnecessary stuff in
there. Removing all the autosetup of networking gets rid of
another 21 packages; and then I had to add gcc, binutils and
rpmutils; leaving me a chroot of 1.2G.  By comparison, a
minimal debian install is 93M -- enough to run apt-get.

Any ideas?

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to