Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
There is a difference between LFS and BLFS:
- All the packages should be installed in the order mentioned when installing LFS.
- BLFS on the other hand is 'just' a collection of packages (with dependencies / help programs).
When starting with BLFS you have to figure out first which packages are of use to you and which dependencies those have. You don't need (want) to install everything that is mentioned. The dependencies (if any) are mentioned in the specific chapter(s), sometimes it mentions programs that are not covered in BLFS itself (try at your own 'risk').
I personally split BLFS in 2 parts:
1) the stuff needed for basic operations (none X related, think SSH, PAM, mouse, etc.),
2) X related stuff (WM, all the graphical goodies).
After you finish building LFS you have a minimal bootable/working linux framework. BLFS are the 'goodies'. After booting into your freshly build LFS you can choose what you want to install from the BLFS packages. The livecd is not needed anymore (ok, if you f*ck up, you might need it....)
As for the location to build the BLFS packages: It doesn't really matter. You can use the sources directory mentioned in LFS (I would seperate the LFS and BLFS packages), the 'historical' /usr/src or a location especially made for it. I used the latter and installed from /data/lfs/blfs/6.3.rc2/sources (I like to keep all lfs related together).
After LFS is installed you don't need the live CD anymore (see reply #4), you should be able to boot into the freshly installed LFS. I assume, based on your thread starter, that you can.
Like I said before, I'm not sure if this is what you want to know, if not: Please rephrase the question.....
actually,,,i've tried to compile some package in blfs using live cd, and there is no error!! but i use 'chroot' command above, before i compiled the blfs package!! i've tried build in my fresh LFS but when i build in my fresh LFS there are many script to type, and it's hard... So i consider using the live cd because it more easier to install the packages (use copy-paste method)...
so what do you think?? must i build again in my fresh LFS??
You finished LFS, from that point on you don't need/want the live CD anymore. Just boot into your LFS and install the BLFS packages you need/want. Do not use the live CD and the chroot method.
I don't understand the 'there are many script to type, and it's hard' part. You do need to do all the steps in the BLFS book, it does not matter how you start.
You can still copy/paste (ok, not for the first few packages). Make sure you install gpm (mouse) and lynx (text based browser). If those are installed you can use lynx to read and copy/paste from the BLFS html pages (you did download the BLFS html docs?).
There is no uninstall command (in general) when you compile/install from source. The BLFS pages do mention what is installed (the Contents part of that page). But be careful with removing all, some may be needed by other packages (this also depends on what you have installed so far).
My advice: Just (re)install the BLFS packages from LFS, the previous package will be overwritten.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.