Non-Interactive apt-get install in Debian
By this method you can skip the interactive query ask while doing apt-get install .
For eg. on doing apt-get -y install nagios-nrpe-server , the samba and dhcp packages also install and at that time it need user manual interaction to say ok or yes/no.
If you want to do no such interaction use the following steps to do so —
# export DEBIAN_FRONTEND=noninteractive
# apt-get -q -y install nagios-nrpe-server nagios-plugins nagios-plugins-basic
The method is helpful when u want to use command remotely from ssh.
# ssh hostname “export DEBIAN_FRONTEND=noninteractive;apt-get -q -y install nagios-nrpe-server”