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 install unroll”: “python setup.py egg_info” failed with error code 1
- Conda version pip install -r requirements.txt –target ./lib
- 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
- “ImportError: No module named site” on Windows
- When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)
- E: Unable to locate package npm
- how to search for a directory from the terminal in ubuntu
- How do I install pip on macOS or OS X?
- Prompted for FTP details even with FS_DIRECT set to true
- How do I setup a WordPress site on a server before the domain is ready?
- register_activation_hook and updating
- Plugin to set all Posts in a certain Category to a certain Post Format
- One WordPress install serving multiple virtual hosts
- Moving WordPress from live to local server
- Plugins try to install in old location [closed]
- WordPress not displaying themes in the wp-content/themes folder
- “Deprecated: mysql_connect()” error when installing Roots Bedrock
- Pushing out updates to multiple installs?
- How do I install more than one WordPress blog on EC2?
- WordPress in subfolder dont work
- Moving WordPress Site from MAMP to cPanel – How?
- muliple wordpress multisite installs on the same sever
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- Moving WordPress from Root to a subfolder
- Automatic publishing after some fixed intervals?
- Reinstalling WordPress
- Automatically email daily archive
- Automating WP application directory creation (domain name passed as a variable argument)
- Programmatically install and activate child-theme
- Installing WAMP and WordPress: Visual Studio 2013 or 2012? [closed]
- Multiple WordPress sites installs sharing the same database but with different content and domains
- How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?
- Whenever I try to publish a post in wordpress, I always get redirected to the installation page…why?
- Is it bad practice to install WordPress by cloning from the official GitHub repo?
- How can i set default pages to a word press theme? it shouldn’t be changed even if i install the theme in different host
- How to use custom fields like Title to show value in content?
- How to move a WordPress installation to a subdirectory
- Automatically delete post in a single category when a new one is created
- my client’s site is confused between WordPress.com and WordPress.org I think
- How to duplicate a website?
- Multi-site Installation in WordPress | Security & Future Migrations
- Fully mask *all* traces of WordPress installation subdirectory?
- Install wordpress as a development site in a subdirectory on live server
- Installing WordPress into a user directory without any admin privileges
- Google analytics not working on WordPress
- Delete old thumbnail when updating new