r/linuxfromscratch • • Feb 02 '23

How to package manager?

How can I write my own package manager from scratch using lfs?

6 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Feb 03 '23

For me the difficulty was to create a package format (a parser in C and everything) for source and binary , keep track of installed package in an SQLite database , create a package repo , write an update mechanism that automatically recompile needed packages and a lot more annoying stuff

3

u/Vladislav97 Feb 03 '23

Thank you. :) Dependencies and recompilation are things that I even didn't think of.

2

u/[deleted] Feb 03 '23

Yea, it’s the main issue , since most software are dynamically linked today