Three options:
- If an apt-get package is available, use it, then tweak configuration files after installation.
- If no package is available, see if the installer has a "noninteractive" mode. For instance, apt-get can be forced to auto-answer all questions with the defaults using
ENV['DEBIAN_FRONTEND'] = "noninteractive"
. - If a noninteractive mode is not available, try feeding the installer an answer file. e.g.
pecl install apc < answers.txt
Creating an answer file can be done manually, or you can try to use autoexpect to generate an installer script.
credit: thanks to Jesse Newland for ideas and info. Originally discussed on the Moonshine mailing list