Ubuntu – apt-get –force-yes: How to suppress further questions

apt

Take the acroread or libpam-ldap packages as examples.

Even when installed with apt-get --force-yes they still ask questions:

  • acroread wants to know whether acrobat should be the standard PDF reader (how to assume yes?)
  • libpam-ldap What's your LDAP-Servers URI, version, password, …? (how to just assume anything, the ldap.conf will be overwritten by puppet anyway)

Is there a "for god's sake assume anything and stop nagging"-switch for apt-get?

Best Answer

Try:

export DEBIAN_FRONTEND=noninteractive
apt-get -y install package1 package2
Related Question