On Tuesday 04 September 2007 11:34:22 [EMAIL PROTECTED] wrote:
> 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?
1) Play on another machine [that's easier to play with/break/retry]
2) The smallest install is on the install menu (I can't remember detail, but
it is there 'minimum text install' or such ('cause I think that is SuSE)
3) You can then prune rpm by hand (rpm -qa # to see this-1.0.3-4.i386.rpm and
rpm -e this to remove it)
In 1 day you can get the install to 400M in 1 week to 32M. I know, I did :-)
There is not a bootstrap type system. You can look at the initrd as a way to
go.
If you are just 'doing some work' just use the 1-2G that you are offered. It
is MUCH easier. I needed to make a 32M flash embedded system. That was hard
work.
James
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html