r/linuxfromscratch • u/TJRoyalty_ • Oct 24 '25
LFS newbie - Package Management
I am curious on the LFS/BLFS system and want to create it in a VM (and eventually, maybe on bare metal) and am wondering to people who have/use completed lfs systems. What package manager would you use? Would you build your packages all with make or git? Or use something like nix for everything?
7
Upvotes
2
u/tiny_humble_guy Oct 24 '25
I'm using qi to build packages, build recipes available. Slackbuild is also usable.
2
u/exeis-maxus Oct 24 '25
I do the compilation myself. But I use a script, based on slackware’s pkgtools, to create packages of software I’ve compiled and installed to a staging directory. I use spkg to handle installation, removal, and upgrading of packages… but does not handle package dependencies. I do the package dependencies in my head :P
I keep my build recipes in a git repo to track changes and to back it up on github.
1
u/One_Enthusiasm_907 Oct 25 '25
Maybe Nix is a good thing. I tried bedrock linux that I want to hijack and turn it into useful. But I failed. Maybe bedrock linux hijack script need some things that I don't have in LFS. Maybe you can take stow into consideration. I think It can be OK. I have tried to install apt pacman and portage. But maybe I am a beginner, I failed again. I am learning how to use nix and try to use nix to be the only package manager.
2
u/Worldly-Cupcake-5025 Oct 24 '25
Compile from source using make. I have no life. Please save me.
1
u/86redditmods Oct 24 '25
I use scratchpkg on github, well I forked it and wrote my own repository
Word of advice install it when going over package management in the book
I use lfs btw with package management as my daily driver lol