How to Execute INSTALL.sh Files in Linux Using Terminal

Download the software you wish to install., Extract the the contents to your Desktop. , Open the terminal., Make the .sh file executable., Finally, execute your .sh file., Finish the installation of your program.

7 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Download the software you wish to install.

    The necessary files will usually be compressed into a Tar archive or zip package.
  2. Step 2: Extract the the contents to your Desktop.

    , The keyboard shortcut to do this is Ctrl+Alt+T.

    Type in the following command: cd ~/Deskop/rockhopper-0.2.b1-020.

    Replace rockhopper-0.2.b1-020 with the name of the folder on your Desktop.

    Then press ↵ Enter. , Type in the next command into the terminal to make the file executable: chmod +x install.sh.

    Replace install.sh with the name of your .sh file.

    Then press ↵ Enter. , Type in this command: sudo ./install.sh.

    Again, replace install.sh with the name of your .sh file.

    Then press ↵ Enter Note:
    If that doesn't work, try sudo bash install.sh without the "./" (This worked on Ubuntu 16).

    You will be required to provide an administrative password for this step. , The terminal file might guide you through some additional steps, such as verifying the installation.
  3. Step 3: Open the terminal.

  4. Step 4: Make the .sh file executable.

  5. Step 5: Finally

  6. Step 6: execute your .sh file.

  7. Step 7: Finish the installation of your program.

Detailed Guide

The necessary files will usually be compressed into a Tar archive or zip package.

, The keyboard shortcut to do this is Ctrl+Alt+T.

Type in the following command: cd ~/Deskop/rockhopper-0.2.b1-020.

Replace rockhopper-0.2.b1-020 with the name of the folder on your Desktop.

Then press ↵ Enter. , Type in the next command into the terminal to make the file executable: chmod +x install.sh.

Replace install.sh with the name of your .sh file.

Then press ↵ Enter. , Type in this command: sudo ./install.sh.

Again, replace install.sh with the name of your .sh file.

Then press ↵ Enter Note:
If that doesn't work, try sudo bash install.sh without the "./" (This worked on Ubuntu 16).

You will be required to provide an administrative password for this step. , The terminal file might guide you through some additional steps, such as verifying the installation.

About the Author

L

Lisa Parker

Experienced content creator specializing in DIY projects guides and tutorials.

70 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: