Automate the installation of .run package
I would like to automate in a single command execution the installation of .run file (xampp in this case) which requires interactive answer from user:
Here is the manual installation:
sudo ./xampp-linux-1.8.3-5-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files : **Y** (Cannot be edited)
XAMPP Developer Files [Y/n] :**n**
Is the selection above correct? [Y/n]: **Y**
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press **[Enter]** to continue:
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: **Y**
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
How can I pre-set the following user entry from the beginning without user intervention?
Y
N
Y
[enter]
Y
software-installation
bumped to the homepage by Community♦ 21 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I would like to automate in a single command execution the installation of .run file (xampp in this case) which requires interactive answer from user:
Here is the manual installation:
sudo ./xampp-linux-1.8.3-5-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files : **Y** (Cannot be edited)
XAMPP Developer Files [Y/n] :**n**
Is the selection above correct? [Y/n]: **Y**
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press **[Enter]** to continue:
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: **Y**
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
How can I pre-set the following user entry from the beginning without user intervention?
Y
N
Y
[enter]
Y
software-installation
bumped to the homepage by Community♦ 21 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
2
expect
– HalosGhost
Oct 27 '14 at 23:10
Thanks HalosGhost. Looks like expect is the right direction.
– AJN
Oct 28 '14 at 0:34
add a comment |
I would like to automate in a single command execution the installation of .run file (xampp in this case) which requires interactive answer from user:
Here is the manual installation:
sudo ./xampp-linux-1.8.3-5-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files : **Y** (Cannot be edited)
XAMPP Developer Files [Y/n] :**n**
Is the selection above correct? [Y/n]: **Y**
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press **[Enter]** to continue:
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: **Y**
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
How can I pre-set the following user entry from the beginning without user intervention?
Y
N
Y
[enter]
Y
software-installation
I would like to automate in a single command execution the installation of .run file (xampp in this case) which requires interactive answer from user:
Here is the manual installation:
sudo ./xampp-linux-1.8.3-5-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files : **Y** (Cannot be edited)
XAMPP Developer Files [Y/n] :**n**
Is the selection above correct? [Y/n]: **Y**
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press **[Enter]** to continue:
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: **Y**
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
How can I pre-set the following user entry from the beginning without user intervention?
Y
N
Y
[enter]
Y
software-installation
software-installation
asked Oct 27 '14 at 23:04
AJNAJN
1184
1184
bumped to the homepage by Community♦ 21 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 21 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
2
expect
– HalosGhost
Oct 27 '14 at 23:10
Thanks HalosGhost. Looks like expect is the right direction.
– AJN
Oct 28 '14 at 0:34
add a comment |
2
expect
– HalosGhost
Oct 27 '14 at 23:10
Thanks HalosGhost. Looks like expect is the right direction.
– AJN
Oct 28 '14 at 0:34
2
2
expect
– HalosGhost
Oct 27 '14 at 23:10
expect
– HalosGhost
Oct 27 '14 at 23:10
Thanks HalosGhost. Looks like expect is the right direction.
– AJN
Oct 28 '14 at 0:34
Thanks HalosGhost. Looks like expect is the right direction.
– AJN
Oct 28 '14 at 0:34
add a comment |
1 Answer
1
active
oldest
votes
There is the mysterious
--optionfile <optionfile> Installation option file
with no documentation I could find (which would be combined with --mode unattended
).
Otherwise, I've had some success with the hackish echo -e "YNYnY" | <command>
where <command>
will be sudo ./xampp-linux-1.8.3-5-installer.run
. (N.B. I've done the installing EMC Networker, not XAMPP.)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f164525%2fautomate-the-installation-of-run-package%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There is the mysterious
--optionfile <optionfile> Installation option file
with no documentation I could find (which would be combined with --mode unattended
).
Otherwise, I've had some success with the hackish echo -e "YNYnY" | <command>
where <command>
will be sudo ./xampp-linux-1.8.3-5-installer.run
. (N.B. I've done the installing EMC Networker, not XAMPP.)
add a comment |
There is the mysterious
--optionfile <optionfile> Installation option file
with no documentation I could find (which would be combined with --mode unattended
).
Otherwise, I've had some success with the hackish echo -e "YNYnY" | <command>
where <command>
will be sudo ./xampp-linux-1.8.3-5-installer.run
. (N.B. I've done the installing EMC Networker, not XAMPP.)
add a comment |
There is the mysterious
--optionfile <optionfile> Installation option file
with no documentation I could find (which would be combined with --mode unattended
).
Otherwise, I've had some success with the hackish echo -e "YNYnY" | <command>
where <command>
will be sudo ./xampp-linux-1.8.3-5-installer.run
. (N.B. I've done the installing EMC Networker, not XAMPP.)
There is the mysterious
--optionfile <optionfile> Installation option file
with no documentation I could find (which would be combined with --mode unattended
).
Otherwise, I've had some success with the hackish echo -e "YNYnY" | <command>
where <command>
will be sudo ./xampp-linux-1.8.3-5-installer.run
. (N.B. I've done the installing EMC Networker, not XAMPP.)
answered Oct 28 '14 at 0:48
Mark WagnerMark Wagner
1,35667
1,35667
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f164525%2fautomate-the-installation-of-run-package%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
expect
– HalosGhost
Oct 27 '14 at 23:10
Thanks HalosGhost. Looks like expect is the right direction.
– AJN
Oct 28 '14 at 0:34