On 12/6/05, Aeliton Germano <[EMAIL PROTECTED]> wrote: > ok, i already did a lfs once, but i want build a litle lfs, so a want > remove some packages... > it can be a large email but i'm not sure about which packages are > realy necessary, hope you help me ;) > > i want remove : <snip> > want install: <snip>
It seems that you are doing more than just stripping down a base LFS system. You want a lot less than a base LFS system. If it were me, I would not build Ch. 6 as is. For one, you'll be including a lot of utilities that you apparently don't want. For two, the packages you build will be linked to utilities that you want to remove. For instance, you will get linking to libncurses.so from lots of apps. Then when you remove ncurses...whoops. This is the way I would try, but I've never done this before. Build Ch.5 as the book. Then you have a clean toolchain for your final system. In the chroot final system, only build those things you want in "want install", taking care to note where breakage occurs. You won't be able to build in the booted system since you won't build gcc or binutils, but that's OK since it's not what you want anyway. You may have to pass a lot of --disable-... arguments to configure scripts so they don't try to link to nonexistent applications. For installing only the minimum number of files from a package (i.e. no man pages, no headers, only necessary libraries), look at the DIY Linux Temptools Phase: http://www.diy-linux.org/x86-reference-build/temptools.html Greg makes his /tools system pretty small by copying only the necessary binaries and disabling debugging. You could apply the same techniques to your final chroot system. Good luck, but I don't think there's any magic document at LFS for building such a minimal system. LFS is geared more towards making a development system. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page