L
L
lik1732021-01-13 01:48:41
linux
lik173, 2021-01-13 01:48:41

How to make a simple package manager?

I would like to write a package manager like apt and pacman.
Only 4 functions: installation, removal, help and information (version, etc.)
With its own sources.list so as not to interfere with apt.
Should download the .deb package, install it automatically (if install or -i is used), remove the package from the system (with remove or -r), and display help with information.

Even it is possible in resources only 1 link.

No. alias and sources.list are not needed. I will distribute it in a deb package

. What programming language is better for this?

If it is difficult, then what needs to be changed in the apt sources to do the above?

Or to pin wget under the guise of your own?
But if wget, then how to complete the link first and .deb at the end, install and remove the package from the folder automatically?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rPman, 2021-01-13
@rPman

You forgot the main function of the package manager - control of dependencies and compatibility of application versions, it will be the most difficult to implement.
And so, write on anything, all the other functions of the package manager are very simple, you can only have to tinker with integrity control and verification of digital signatures.

V
Vitaly Karasik, 2021-01-13
@vitaly_il1

First, decide what you want to do - alternative dpkg or apt.
If the latter, then it is very easy, the main functionality in dpkg.
You can even write in python.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question