G
G
Gregory2015-01-26 19:07:03
linux
Gregory, 2015-01-26 19:07:03

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

5 answer(s)
H
hiloader, 2015-01-26
@hiloader

Makself megastep.org/makeself/. Used by many proprietary vendors. + dialog for checkboxes, kryzhikov invisible-island.net/dialog/.

G
giner, 2015-01-28
@giner

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...

G
globuser, 2015-01-26
@globuzer

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

V
Vlad Zhivotnev, 2015-01-26
@inkvizitor68sl

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.

V
Vasily Angapov, 2015-02-08
@celebrate

I use dialog/whiptail for such things.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question