Answer the question
In order to leave comments, you need to log in
Linux: How to write a console installer?
Please tell me on what and how to write a console installer similar to the phpmyadmin installer? On Ubuntu, apt-get install phpmyadmin will open an "install window" where you can select installation options, enter a password, and so on.
On what are such installers written or by what means are created?
Thank you!
Answer the question
In order to leave comments, you need to log in
Makself megastep.org/makeself/. Used by many proprietary vendors. + dialog for checkboxes, kryzhikov invisible-island.net/dialog/.
The phpmyadmin package does indeed use debconf for configuration management, as noted above. If you download the package, open it with an archiver or with mc, then in the DEBIAN directory you will find the templates. This file contains descriptions of variables, their types and possible values. The values of these variables are set during package installation and then stored in the /var/cache/debconf directory. These values can then be retrieved using db_get (usually done in the postinst script).
Read more:
https://www.debian.org/doc/packaging-manuals/debco...
https://www.debian.org/doc/manuals/developers-ref...
C \ C ++, Python, yes, so many things are possible, the main thing is in what time and with what quality it will be done, before solving the problem, you need to evaluate all factors, input data, output results
In general, when installing phpmyadmin, debconf is launched (if you are talking about deb-based distros) - you don’t need to write anything really there.
And so - ncurses, yes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question