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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can I easily follow the book and adapt this package management ?
Roelof
Short answer, no. You will have to change some of the Makefiles. Read the README of the package-manager.
You will also run into several permission issues, e.g. when starting to build your system you will create some symlinks as root. Those links would be normally automatically removed/replaced during installation, e.g. the bash symlink in /bin. However, if you install as package user, you will be installing as user bash. Therefor you would lack permission to remove this link. You would have to do this manually as root before you install the package.
Also you will have to manually change the groups of certain packages to the install group. Especially the installation of the man pages of the packages will regularly fail.
I like the idea of the fakeroot install but it seems that every package get installed two times.
Roelof
That is correct. Every package-management technique has its pros and cons. If this is your first LFS build I would advise you to skip package managment. Later, after you know how LFS works you can build it again with a package-manager.
I see. Well, I can not really answer if 2GB will suffice since I am not familiar with the fake-root approach. But I don't think you have to keep the fake installation. AFAIK it is only temporary and discarded after the real install is done. But you better get confirmation on that by someone who has build his LFS with fake-root package management.
I prefer the user based package management. I like the idea of being able to determine which program was installed by which package. Since this technique only grants limited installation permissions to every package nothing gets overwritten without noticing. This was also an important point for my decision.
it was also my first choice but in post 2 you made it clear you get a few problems.
And you have to change some Makefiles. Because Im not familiar with this I decided against it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.