How do popular package managers upgrade packages like glibc?

0

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?

Michael Smith

Posted 2011-07-16T05:50:34.543

Reputation: 158

Answers

2

"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.

Ignacio Vazquez-Abrams

Posted 2011-07-16T05:50:34.543

Reputation: 100 516