Say I need to install a package using dpkg -i
, which would prompt user for some values such as username and password.
I can easily do it from terminal and proceed with installation.
But going by this plan I cannot automate the installation, for example if I want to write a script for installation of a package which takes the parameters interactively.
So I want a dpkg installation plan which is interactive (prompting for username and password) but can still be able to be invoked from a script so that the installation process is automated.
How can I go about this? Are there any alternatives?