Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've been looking further into Linux from Scratch, and I am particularly interested in the package management side of the system. I understand that this is not covered in the book, but if I were to attempt LFS, package management would be a major convenience.

From what I have read, when upgrading packages like glibc, you have to recompile everything to reflect the change.

If that is true, how do package managers like pacman and apt get around this issue? Isn't lacking glibc for even the time it takes to replace the files catastrophic to the system?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

"when upgrading packages like glibc, you have to recompile everything to reflect the change" is only true if your software builds against the static library. Which almost no one does. Because recompiling is a pain. Instead, everyone builds against the shared object, which means that if the library is changed then the application will pick up the changed library.

Well, it's a little more complicated than that with APIs and SONAMEs and all, but that's the basics.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.