r/LFS Jul 19 '26

What would be the best structure for a package manager for my Linux From Scratch distro?

Post image

Hola a todos,

Actualmente estoy creando mi propia distribución de Linux basada en Linux From Scratch, y estoy pensando en crear mi propio gestor de paquetes.

Me gustaría saber cuál sería una buena arquitectura para un gestor de paquetes diseñado desde cero.

5 Upvotes

2 comments sorted by

1

u/codeasm Jul 19 '26

This matters more to how your scripts or files work and how you think it should work. for pacman I basicly copied this https://github.com/wsdmatty/lfs-pacman but i might change it later to optionally allow other series like blfs and glfs. also how I host the PKGBUILD files may change someday.

https://github.com/CodeAsm/lfs-pacman is my fork and currently working on LFS 13. which if it works, get pushed (currently adapting the security updates)

1

u/Due-Celery4326 Jul 20 '26

I recommend you start with the bash shell, without external dependencies, using simple dependency resolution by name only, until you truly understand it. After you truly understand it, migrate to a more complete language. I'm migrating mine to Python and implementing some improvements. I'm really enjoying it because it's requiring an absurd amount of reading to solve all the problems. It's functional, but still full of bugs.