On 7/22/05, Andrei Dore <[EMAIL PROTECTED]> wrote:

<snip>

> quite afraid that I will be more over 100 Mb when I
> will finish :(. As I need the whole system to run on a
> 256 MB compact flash, this will be a real problem.
> As far as I've understood, the key is to remove
> unneeded packages.

You can remove the following, depending on what you want to do:

+++TimeZone and Locales (if you only need english)
 - (copy the one needed timezone to /etc instead of ln -s)
/usr/share/{zoneinfo,locale}
/usr/lib/locale
/usr/share/i18n

+++Compiling tools (if you will not be building any packages from source)
/usr/share/{automake*,aclocal*,autoconf,libtool}
/usr/bin/{make,automake*,aclocal*,autoconf,autom4te,autoheader}
/usr/bin/{autoreconf,autoscan,autoupdate,ifnamesi,libtool*}
/{,usr/}lib/*.la
/usr/lib/{crt*.o,?crt1.o,gcc-lib}
/lib/cpp
/usr/bin/{c++*,g++,cc,gcov,gcc*,cpp,i?86-pc-linux-{g++,c++,gcc*}}
/usr/include
/usr/lib/*.a

+++Documentation
/usr/share/man
/usr/man
/usr/share/tex{info,mf}
/usr/share/groff
/usr/share/{doc,info}

Those are the major ones, but there are hundreds of other files that
can be removed, especially in /{,usr/}{s}bin - use the man pages to
decide if you need it or not for your finished system. And if you
don't need Perl, thats another 35Mb or so that you can "save". Note of
caution - some of the bootscripts use commands in /bin, so
double-check them before you remove commands you don't need - the boot
scripts may need them too.

With some other minor enhancements, I have a system running at 24Mb
from CD-ROM that has a DNS\DHCP server, IPtables firewall, ssh server,
web server and web proxy amongst other things - by using uClibc and
converting some perl apps to native C code, I expect to get that below
15Mb easily.

NOTE: Once you have removed the compiler tools, you are stuck with the
packages you have now (unless you use a binary installer) - so make
sure you have installed everything you want!

One day, I'll write a hint about how I made this ;)

-- -
Steve Crosby
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to