r/linuxfromscratch • • Dec 10 '23
First time user and i have a question
First of,
The book is fantastic! By far the most fun i'm having installing GNU/Linux (and i've used my fair share of distros, by far i'm liking this the most)!
I'm currently doing my first install and i'm compiling GCC, i only have one concern: how will i update my packages? This is really the only thing that is puzzling to me...can someone explain it to me?
Anyways, i can't wait to do BLFS and maybe do some reinstalls as a refresher!
9
Upvotes
3
u/Cybasura Dec 11 '23
Generally all distributions start from LFS, what makes the difference is the package manager first and foremost, after that comes the toolings and your customizations
For example, Debian, ArchLinux are all just LFS (The Linux Kernel + GNU rootfs utilities) + their respective package managers
So yeah most people would create a tarball of their newly installed system before proceeding with BLFS
Some people may try to create their own package managers, or install pacman, emerge or apt
I think the fun of doing this is the manual packaging though, ironically
2
u/StationFull Dec 11 '23
Updating packages will be a nightmare. You’ll have to update the package as well all its dependencies. There is no package manager. You’ll have to do everything yourself LFS isn’t really a useable “distro” for Linux. Updating core packages like gcc kinda means you’ll have to almost do everything from scratch again.
2
u/kcirick Dec 11 '23
For package management, you can fairly easily write a rudimentary manager yourself. I based mine mostly off of slackbuilds, but AUR has something similar and used entirely bash to semi-automate building. Of course dependency checking can make things quite complicated, but I just keep track of it in a plain text file.
For the update of the packages, LFS has security advisories and so does BLFS. Other sources like Arch advisories are also good to check for which package you want to upgrade. It's a lot of work, but you aren't using LFS if you want things to be easy.
2
u/Sharp_Sell_987 Dec 22 '23
Glad to hear that you liked the LFS book!
As for the package manager, it's easy to make your own on the same bash. I haven't tried it yet, but I know:)
Creating something from scratch, especially linux, is not like installing Debian. You need a lot of responsibility. I'm sure you will succeed. You can also build a package manager in c or c++ if you know it