Automate the installation of .run package












1















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










share|improve this question














bumped to the homepage by Community 16 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
















1















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










share|improve this question














bumped to the homepage by Community 16 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














1












1








1








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










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 27 '14 at 23:04









AJNAJN

1184




1184





bumped to the homepage by Community 16 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 16 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














  • 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










1 Answer
1






active

oldest

votes


















0














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.)






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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.)






    share|improve this answer




























      0














      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.)






      share|improve this answer


























        0












        0








        0







        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.)






        share|improve this answer













        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.)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 28 '14 at 0:48









        Mark WagnerMark Wagner

        1,35667




        1,35667






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Loup dans la culture

            How to solve the problem of ntp “Unable to contact time server” from KDE?

            ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux