Do we need all the packeges from the LFS book
Hello,
How can I determine if I need a particular program, from chapter 6 of the book? For example I dont want MAN PAGES to be installed, also I dont need every localization file just english. I dont need perl and so on. Im trying to make it as small as possibile. First LFS is built now I want it smaller and smaller :) |
Quote:
|
I'd strip it down bit by bit, make note what "left the building" and rebuild. But the question is not "how to make it smaller?" (there are more than enough distros like that) but "what do you need for what task?", in a micro controller you do not need a gui, on a desktop you do, on a dedicated "black box" on the LAN (router, media server) you need certain this and not certain that...
Your challenge is quite interesting in that you want a "lean distro" - but to what end? Just my two cents... ;) Thor |
Hi,
To start with you can: - Not install the /usr/share/doc/xyz parts of packages, - Remove the debugging symbols from binaries and libraries (stripping). I don't think the man-pages (and Man-DB) are needed. I'm not so sure about perl though, something tells me you need it, although I cannot tell you exactly why. The book mentions a minimal set of locale files needed for testing. I just remembered I have some (old!) info lying around about a minimal LFS install (or rather: removing stuff after a normal build). Don't remember where I got the info from, but this is what I have: Quote:
Anyway, hope this helps. |
Thank you for help, Im just trying to better understand how linux works at least a little bit better.
I want to figure out how TinyCore folks managed to make it so tiny :). All is about that, but I need tinycore linux that i can install on hard disk, not to run form ram. So tiny core backup scripts and some other things are way out LFS. |
I built several LFS by the book just to practice a little :).
Now I want to make little system just with minimal graphic environment and XMMS player, thats why I asked do we need all the packages :). I guess all this can be done under 10 megs. Or do I need to be advanced linux programmer to do this task? |
Hi,
Quote:
Xmms is not part of LFS and all the above answers were tailored to a minimal LFS install. If you want xmms you also need GTK+-1.2.10, which in turn needs GLib-1.2.10, and X Window System which need ...... I would recommend looking at the BLFS book, the xmms chapter and see what all the required dependencies (and their dependencies) are. I am sure that 10 Mb will not be possible with all that xmms needs. 10 Mb won't even be possible with only a minimal LFS install (which would be about 30 Mb if I remember correctly). Hope this helps. |
Yes question is a little off, now Im building another LFS but at the begining I want before compiling glibc, to find out do I need all binaries from glibc or can compile just few of them that I will need (maybe :) ) Like tinycore for example.
|
Hi,
Quote:
BTW: I've heard about tinycore, but never installed/used it. |
Thanx, problem is I dont know how not to install certain binaries or packages :)
|
Quote:
But as mentioned in post #4: Install all as mentioned in the book and remove parts afterwards. This seems to be the safe method. |
Ok so after MAKE INSTALL, and after all is finished, like after I can boot into the system, then I can just RM binaries that I dont need? Im on it :) .
|
Hi,
Minor adjustment: Quote:
|
Quote:
can I remove below documentation that you didn't mention above? /usr/info /usr/doc |
Quote:
There's no use for them if you remove /usr/share/{info,doc} |
All times are GMT -5. The time now is 04:41 AM. |