Automating the installation of individual debian 8 packages with interactive prompts
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I am looking to automate some package installations via bash script; they will be installed to a pre-existing chroot'd filesystem. Some of the packages however involve interactive user input (i.e. ddclient asks to select a dynamic DNS service provider), which I haven't been able to automate as easily.
debconf preseeding seems to be the most common way to automate interactive package installations, but all the examples I've read imply that it's for an entire Debian installation rather than just individual packages.
I've been following this How to automate interactive Debian package installations but it doesn't really explain the specifics.
Thanks in advance!
debian dpkg debconf
add a comment |Â
up vote
2
down vote
favorite
I am looking to automate some package installations via bash script; they will be installed to a pre-existing chroot'd filesystem. Some of the packages however involve interactive user input (i.e. ddclient asks to select a dynamic DNS service provider), which I haven't been able to automate as easily.
debconf preseeding seems to be the most common way to automate interactive package installations, but all the examples I've read imply that it's for an entire Debian installation rather than just individual packages.
I've been following this How to automate interactive Debian package installations but it doesn't really explain the specifics.
Thanks in advance!
debian dpkg debconf
Ansible or Salt
â Rui F Ribeiro
Jun 14 at 19:27
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am looking to automate some package installations via bash script; they will be installed to a pre-existing chroot'd filesystem. Some of the packages however involve interactive user input (i.e. ddclient asks to select a dynamic DNS service provider), which I haven't been able to automate as easily.
debconf preseeding seems to be the most common way to automate interactive package installations, but all the examples I've read imply that it's for an entire Debian installation rather than just individual packages.
I've been following this How to automate interactive Debian package installations but it doesn't really explain the specifics.
Thanks in advance!
debian dpkg debconf
I am looking to automate some package installations via bash script; they will be installed to a pre-existing chroot'd filesystem. Some of the packages however involve interactive user input (i.e. ddclient asks to select a dynamic DNS service provider), which I haven't been able to automate as easily.
debconf preseeding seems to be the most common way to automate interactive package installations, but all the examples I've read imply that it's for an entire Debian installation rather than just individual packages.
I've been following this How to automate interactive Debian package installations but it doesn't really explain the specifics.
Thanks in advance!
debian dpkg debconf
asked Jun 14 at 19:17
kapkong
132
132
Ansible or Salt
â Rui F Ribeiro
Jun 14 at 19:27
add a comment |Â
Ansible or Salt
â Rui F Ribeiro
Jun 14 at 19:27
Ansible or Salt
â Rui F Ribeiro
Jun 14 at 19:27
Ansible or Salt
â Rui F Ribeiro
Jun 14 at 19:27
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
Short of using a âÂÂproperâ deployment and configuration management tool such as Ansible or Salt, debconf
preseeding can be perfectly sufficient for pre-configuring Debian packages. ItâÂÂs not at all limited to full blown installations; it can be applied to any number of packages.
The simplest way to get started with it is to manually configure the packages you want to install, by installing the package and answering the questions. Then run debconf-get-selections
(from the debconf-utils
package); that will list all the settings that are stored, including those for the packages you just installed, along with the question text in comments â so you can easily find the questions you want to preseed. The format is
<package> <debconf key> <type> <value>
For example
# System's default paper size:
# Choices: letter, a4, note, legal, executive, halfletter, halfexecutive, 11x17, statement, folio, quarto, 10x14, ledger, tabloid, a0, a1, a2, a3, a5, a6, a7, a8, a9, a10, b0, b1, b2, b3, b4, b5, c5, DL, Comm10, Monarch, archE, archD, archC, archB, archA, flsa, flse, csheet, dsheet, esheet
libpaper1 libpaper/defaultpaper select a4
Store the settings you want to preseed in a file, then run debconf-set-selections
(in the debconf
package) on the target system, either with the file available locally and named as the first argument, or its contents piped:
cat preseed-file | ssh remotehost debconf-set-selections
Do this before installing the packages on the target system.
thanks! This is exactly what I'm looking for. Hopefully it's cool if I try it out and reply if I encounter any issues.
â kapkong
Jun 14 at 19:52
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Short of using a âÂÂproperâ deployment and configuration management tool such as Ansible or Salt, debconf
preseeding can be perfectly sufficient for pre-configuring Debian packages. ItâÂÂs not at all limited to full blown installations; it can be applied to any number of packages.
The simplest way to get started with it is to manually configure the packages you want to install, by installing the package and answering the questions. Then run debconf-get-selections
(from the debconf-utils
package); that will list all the settings that are stored, including those for the packages you just installed, along with the question text in comments â so you can easily find the questions you want to preseed. The format is
<package> <debconf key> <type> <value>
For example
# System's default paper size:
# Choices: letter, a4, note, legal, executive, halfletter, halfexecutive, 11x17, statement, folio, quarto, 10x14, ledger, tabloid, a0, a1, a2, a3, a5, a6, a7, a8, a9, a10, b0, b1, b2, b3, b4, b5, c5, DL, Comm10, Monarch, archE, archD, archC, archB, archA, flsa, flse, csheet, dsheet, esheet
libpaper1 libpaper/defaultpaper select a4
Store the settings you want to preseed in a file, then run debconf-set-selections
(in the debconf
package) on the target system, either with the file available locally and named as the first argument, or its contents piped:
cat preseed-file | ssh remotehost debconf-set-selections
Do this before installing the packages on the target system.
thanks! This is exactly what I'm looking for. Hopefully it's cool if I try it out and reply if I encounter any issues.
â kapkong
Jun 14 at 19:52
add a comment |Â
up vote
3
down vote
accepted
Short of using a âÂÂproperâ deployment and configuration management tool such as Ansible or Salt, debconf
preseeding can be perfectly sufficient for pre-configuring Debian packages. ItâÂÂs not at all limited to full blown installations; it can be applied to any number of packages.
The simplest way to get started with it is to manually configure the packages you want to install, by installing the package and answering the questions. Then run debconf-get-selections
(from the debconf-utils
package); that will list all the settings that are stored, including those for the packages you just installed, along with the question text in comments â so you can easily find the questions you want to preseed. The format is
<package> <debconf key> <type> <value>
For example
# System's default paper size:
# Choices: letter, a4, note, legal, executive, halfletter, halfexecutive, 11x17, statement, folio, quarto, 10x14, ledger, tabloid, a0, a1, a2, a3, a5, a6, a7, a8, a9, a10, b0, b1, b2, b3, b4, b5, c5, DL, Comm10, Monarch, archE, archD, archC, archB, archA, flsa, flse, csheet, dsheet, esheet
libpaper1 libpaper/defaultpaper select a4
Store the settings you want to preseed in a file, then run debconf-set-selections
(in the debconf
package) on the target system, either with the file available locally and named as the first argument, or its contents piped:
cat preseed-file | ssh remotehost debconf-set-selections
Do this before installing the packages on the target system.
thanks! This is exactly what I'm looking for. Hopefully it's cool if I try it out and reply if I encounter any issues.
â kapkong
Jun 14 at 19:52
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Short of using a âÂÂproperâ deployment and configuration management tool such as Ansible or Salt, debconf
preseeding can be perfectly sufficient for pre-configuring Debian packages. ItâÂÂs not at all limited to full blown installations; it can be applied to any number of packages.
The simplest way to get started with it is to manually configure the packages you want to install, by installing the package and answering the questions. Then run debconf-get-selections
(from the debconf-utils
package); that will list all the settings that are stored, including those for the packages you just installed, along with the question text in comments â so you can easily find the questions you want to preseed. The format is
<package> <debconf key> <type> <value>
For example
# System's default paper size:
# Choices: letter, a4, note, legal, executive, halfletter, halfexecutive, 11x17, statement, folio, quarto, 10x14, ledger, tabloid, a0, a1, a2, a3, a5, a6, a7, a8, a9, a10, b0, b1, b2, b3, b4, b5, c5, DL, Comm10, Monarch, archE, archD, archC, archB, archA, flsa, flse, csheet, dsheet, esheet
libpaper1 libpaper/defaultpaper select a4
Store the settings you want to preseed in a file, then run debconf-set-selections
(in the debconf
package) on the target system, either with the file available locally and named as the first argument, or its contents piped:
cat preseed-file | ssh remotehost debconf-set-selections
Do this before installing the packages on the target system.
Short of using a âÂÂproperâ deployment and configuration management tool such as Ansible or Salt, debconf
preseeding can be perfectly sufficient for pre-configuring Debian packages. ItâÂÂs not at all limited to full blown installations; it can be applied to any number of packages.
The simplest way to get started with it is to manually configure the packages you want to install, by installing the package and answering the questions. Then run debconf-get-selections
(from the debconf-utils
package); that will list all the settings that are stored, including those for the packages you just installed, along with the question text in comments â so you can easily find the questions you want to preseed. The format is
<package> <debconf key> <type> <value>
For example
# System's default paper size:
# Choices: letter, a4, note, legal, executive, halfletter, halfexecutive, 11x17, statement, folio, quarto, 10x14, ledger, tabloid, a0, a1, a2, a3, a5, a6, a7, a8, a9, a10, b0, b1, b2, b3, b4, b5, c5, DL, Comm10, Monarch, archE, archD, archC, archB, archA, flsa, flse, csheet, dsheet, esheet
libpaper1 libpaper/defaultpaper select a4
Store the settings you want to preseed in a file, then run debconf-set-selections
(in the debconf
package) on the target system, either with the file available locally and named as the first argument, or its contents piped:
cat preseed-file | ssh remotehost debconf-set-selections
Do this before installing the packages on the target system.
answered Jun 14 at 19:37
Stephen Kitt
139k22301363
139k22301363
thanks! This is exactly what I'm looking for. Hopefully it's cool if I try it out and reply if I encounter any issues.
â kapkong
Jun 14 at 19:52
add a comment |Â
thanks! This is exactly what I'm looking for. Hopefully it's cool if I try it out and reply if I encounter any issues.
â kapkong
Jun 14 at 19:52
thanks! This is exactly what I'm looking for. Hopefully it's cool if I try it out and reply if I encounter any issues.
â kapkong
Jun 14 at 19:52
thanks! This is exactly what I'm looking for. Hopefully it's cool if I try it out and reply if I encounter any issues.
â kapkong
Jun 14 at 19:52
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449885%2fautomating-the-installation-of-individual-debian-8-packages-with-interactive-pro%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Ansible or Salt
â Rui F Ribeiro
Jun 14 at 19:27