P
P
Pavel K2019-07-22 19:00:22
linux
Pavel K, 2019-07-22 19:00:22

How and can you use libsolv to resolve dependencies in your project?

Greetings!
I make plugins in my project, plugins can depend on others (including different versions), in general, as in Linux.
Accordingly, I want to make my own package manager. Google suggested that Linux uses libsolv to resolve dependencies, but I can’t find how to use it anywhere, tell me, please?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2019-07-22
@MechanID

Google says that this library is used in Suse linux and its derivatives, it is not in other linux distributions.
Different distributions have different package managers and package types and add-ons for them.
First decide which packages will you manage? rpm? deb? some kind of exotic like ebuild?
then study the package manager, then think about how to manage it.

V
Vitaly Karasik, 2019-07-22
@vitaly_il1

As Vladimir correctly noted, Linux (yet?) does not have a universal package manager.
There are two dominant formats:
dpkg - born in debian, used in ubuntu and debian
rpm - Born in red hat, used in RHEL/CENTOS, Suse, Mandrive, AWS Linux, etc.
Here is an intro to RPM package generation - https://opensource.com/article/18/9/how-build-rpm-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question