I have a server build script which uses apt-get to install packages. It then puts pre-written configuration files directly in place, so the interactive post-install configuration dialog in packages such as postfix is not needed. How do I skip this stage of the installation? It creates a piece of manual intervention that I would rather avoid.

I am aware of the -qq option, but the manpage warns against using it without specifying a no-action modifier. I do want to perform an action, I just want to suppress a specific part of it.

link|improve this question

50% accept rate
feedback

1 Answer

up vote 6 down vote accepted

You can do a couple of things for avoiding this

First set the variable export DEBIAN_FRONTEND=noninteractive then you can run apt-get -y [packagename], this should do exactly what you want.

link|improve this answer
I agree with the lynxman's method. – Jonathan Rioux Jan 26 '11 at 16:50
This works perfectly, thanks. – jl6 Jan 26 '11 at 17:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.