LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   user based package management and book 6.6 (https://www.linuxquestions.org/questions/linux-from-scratch-13/user-based-package-management-and-book-6-6-a-802566/)

charlie_lab 04-17-2010 12:35 PM

user based package management and book 6.6
 
Hello,

Can I easily follow the book and adapt this package management ?

Roelof

crts 04-17-2010 06:23 PM

Quote:

Originally Posted by charlie_lab (Post 3938663)
Hello,

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.

charlie_lab 04-18-2010 03:17 AM

Oke

Then I have to rethink the package management.

I like the idea of the fakeroot install but it seems that every package get installed two times.

Roelof

crts 04-18-2010 05:12 AM

Quote:

Originally Posted by charlie_lab (Post 3939098)
Oke

Then I have to rethink the package management.

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.

charlie_lab 04-18-2010 08:46 AM

Oke,

Is a 2G enough for the base, X and Full Gnome with the fake root package management ?

Roelof

crts 04-18-2010 09:03 AM

Quote:

Originally Posted by charlie_lab (Post 3939290)
Oke,

Is a 2G enough for the base, X and Full Gnome with the fake root package management ?

Roelof

What do you mean with 2G?

charlie_lab 04-18-2010 09:13 AM

Hoi,

I mean 2 GB.
Sorry for the confusion.

Roelof

crts 04-18-2010 12:02 PM

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.

charlie_lab 04-18-2010 12:05 PM

Oke,

I will close this topic and open a new topic for the fake-root approach.

Thanks for the help.

Which way do you use as package management ?

Roelof

crts 04-18-2010 12:11 PM

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.

charlie_lab 04-18-2010 12:26 PM

Hello crts,

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.

Roelof


All times are GMT -5. The time now is 08:50 AM.