You can use pre-seeding for this, using the debconf-set-selections
command to pre-answer the questions asked by debconf before installing the package.
For example:
debconf-set-selections <<< "postfix postfix/mailname string your.hostname.com"
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
apt-get install --assume-yes postfix
Related Posts:
- E: Unable to locate package mongodb-org
- How do I ask apt-get to skip any interactive post-install configuration steps?
- How to remove the “installed manually” flag and revert to “automatically installed” with apt-get?
- How do I get apt-get to ignore some dependencies?
- list all packages from a repository in ubuntu / debian
- dpkg-reconfigure: unable to re-open stdin: No file or directory
- ping: google.com: Temporary failure in name resolution [closed]
- Docker System has not been booted with systemd as init system
- CentOS vs. Ubuntu [closed]
- Docker error : no space left on device
- How to establish ssh key pair when “Host key verification failed”
- How to install “make” in ubuntu?
- localhost/phpinfo.php
- After installing with pip, “jupyter: command not found”
- gpg: no valid OpenPGP data found
- gpg: no valid OpenPGP data found
- How to open the terminal in Atom?
- Unable to locate package libapache2-mod-php7
- Valgrind permission denied on file
- Package php5 have no installation candidate (Ubuntu 16.04)
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- How to install Boost on Ubuntu
- How to verify if nginx is running or not?
- How to install Android SDK on Ubuntu?
- pdflatex not found. pdflatex is needed for pdf output
- Nginx: stat() failed (13: permission denied)
- PIP Could not find any downloads that satisfy the requirement SQLAlchemy
- MySQL: How to reset or change the MySQL root password?
- Removing all installed OpenCV libs
- Vim: No write since last change, even though I changed the file
- Install pip for python 3.5
- Why can’t I print to terminal with my python script?
- How to kill a process on a port on ubuntu
- whats the meaning of curl “-s” and “-m”
- Shortest possible shell script to install WordPress on Nginx server?
- Repeatable configuration package
- Programatically Creating Initial WordPress Site
- Automate dir and DB stack creation with WP-CLI
- Automate specific steps on WordPress install
- On install, automatically create page and set it as front page
- database – multiple wordpress installations using same database – can they share plugin settings?
- automation of plugin installations
- How to view all ssl certificates in a bundle?
- How do I auto-start docker containers at system boot?
- How do I reattach to Ubuntu Server’s ‘do-release-upgrade’ process?
- How to determine JAVA_HOME on Debian/Ubuntu?
- How to start/stop iptables on Ubuntu?
- Which ports do I need to open in the firewall to use NFS?
- How can I edit the welcome message when ssh start?
- How does Ubuntu keep track of the “System restart required” flag in motd?
- Amazon Linux vs. Ubuntu for Amazon EC2 [closed]
- Best location to keep SSL certificates and private keys on Ubuntu servers?
- Why is ssh agent forwarding not working?
- pip not recognised as an internal or external command
- How to completely remove Python from a Windows machine?
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- How to install Visual C++ Build tools?
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- Tensorflow import error: No module named ‘tensorflow’
- Amazon Linux: apt-get: command not found
- How do I install pip on macOS or OS X?
- Amazon Linux: apt-get: command not found
- How do I install pip on macOS or OS X?
- How can I install pip on Windows?
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- ImportError: No module named tensorflow
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- Undefined function mysql_connect()
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How to find which version of TensorFlow is installed in my system?
- Undefined function mysql_connect()
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How do I install and use cURL on Windows?
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- Homebrew install specific version of formula?
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
- What is a clearfix?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- How can I completely uninstall nodejs, npm and node in Ubuntu [closed]
- How to install python3 version of package via pip on Ubuntu?
- “Defaulting to user installation because normal site-packages is not writeable” python message
- How to install MinGW 64 on windows 10
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- Installing Homebrew on OS X
- Why does the terminal show “^[[A” “^[[B” “^[[C” “^[[D” when pressing the arrow keys in Ubuntu?
- Conda version pip install -r requirements.txt –target ./lib
- Python3: ImportError: No module named ‘_ctypes’ when using Value from module multiprocessing
- Conda version pip install -r requirements.txt –target ./lib
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- JRE Missing when installing eclipse
- How to install JQ on Mac on the command line?
- You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)
- [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- Amazon Linux: apt-get: command not found
- You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)
- E: unable to locate package pip
- bundle install returns “Could not locate Gemfile”
- How to solve “Kernel panic – not syncing – Attempted to kill init” — without erasing any user data