• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Run the INSTALL.sh File on Linux Using Terminal

November 28, 2023 by admin Category: How To

You are viewing the article How to Run the INSTALL.sh File on Linux Using Terminal  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

Linux is an open-source operating system that offers vast flexibility and customization options to its users. To fully harness its potential, it is common for many software installations on Linux to involve running a script called INSTALL.sh through the terminal. This script is often provided by developers and contains all the necessary instructions to install the software correctly. In this guide, we will explore the steps required to run an INSTALL.sh file on Linux using the terminal, allowing you to effortlessly install various software packages and expand your Linux system’s functionality. Whether you are a seasoned Linux user or just starting your journey, mastering the art of installing software through the terminal will enhance your experience and efficiency within the Linux ecosystem.

X

This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

This article has been viewed 14,473 times.

The Linux operating system offers many simple ways to assist users in installing new programs, such as through the Ubuntu Software Center and Synaptic Package Manager. Even so, some applications still have to be installed from the command console. This article will show you how to install applications from the INSTALL.sh file using the command line.

Steps

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 1

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 1

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/7/7c/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-1-Version-3.jpg/ v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-1-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ 7/7c/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-1-Version-3.jpg/v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal- Step-1-Version-3.jpg”,”smallWidth”:460,”smallHeight”:348,”bigWidth”:728,”bigHeight”:550,”licensing”:”<div class=”mw-parser-output “></div>”}
Download the software you want to download. Essential files are usually compressed into .tar, .tgz or .zip files.
Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 2

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 2

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/ba/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-2-Version-3.jpg/ v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-2-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ b/ba/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-2-Version-3.jpg/v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal- Step-2-Version-3.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:544,”licensing”:”<div class=”mw-parser-output “></div>”}
Extract the “.tar” or “.zip” file (if needed). If the software you downloaded has an archive file format such as “.tar”, “.tgz” or “.zip”, you need to perform an unzip operation to get the .sh file. If the downloaded file is already in “.sh” format, skip this step. Use one of the following methods to decompress the archive:

  • Right-click the downloaded archive, then select Extract Here (the content displayed may vary by Linux version).
  • If you use the terminal, use the command ” cd ~/path ” to navigate to the directory where the archive is stored. Replace “path” with the path to the directory (such as “cd ~/Downloads”).
  • To extract the “.tar” or “.tar.gz” file using the terminal, use the command ” tar -xvf filename.tar ” and press ” Enter “. Replace “filename” with the name of the file (such as “tar -xvf jdk-14.0.2_linux-x64_bin.tar.gz”) [1] X Research Source
  • To extract the “.zip” file from the terminal, you will use the command ” unzip filename.zip ” and press ” Enter “. Replace “filename” with the name of the zip file (such as “unzip Minecraft.zip”).
READ More:   How to Keep Glitter From Falling Out of Clothes
Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 3

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 3

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/fa/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-3-Version-3.jpg/ v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-3-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ f/fa/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-3-Version-3.jpg/v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal- Step-3-Version-3.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:545,”licensing”:”<div class=”mw-parser-output “></div>”}
Find the directory containing the file.sh” . To do this, you need to double click on the extracted folder and do a search to see which folder contains the install.sh file.
Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 4

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 4

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/9/92/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-4-Version-3.jpg/ v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-4-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ 9/92/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-4-Version-3.jpg/v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal- Step-4-Version-3.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:”<div class=”mw-parser-output “></div>”}
Open a terminal window. The terminal program has a black screen icon with a text cursor. Click this icon in the dock or the Applications menu to open the terminal program.

  • The fastest way to do this in most window management tools is to press the key combination ” Ctr + Alt + T ” on your keyboard.
Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 5

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 5

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/ae/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-5-Version-3.jpg/ v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-5-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ a/ae/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-5-Version-3.jpg/v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal- Step-5-Version-3.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:545,”licensing”:”<div class=”mw-parser-output “></div>”}
Access the path of the extracted folder. Type ” cd ~/ ” followed by the path to the file “.sh”, then press ” Enter “. Use slashes (/) to separate folders. For example, if the file was saved in the Downloads folder, you would type the command “cd ~/Downloads/jdk-14.0.2_linux-x64_bin/bin” and press Enter.

  • To make sure you have the correct directory open, type ” ls -a ” at the command console and press ” Enter “. You will see similar file and directory listings.
Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 6

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 6

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/dc/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-6-Version-3.jpg/ v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-6-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ d/dc/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-6-Version-3.jpg/v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal- Step-6-Version-3.jpg”,”smallWidth”:460,”smallHeight”:343,”bigWidth”:728,”bigHeight”:543,”licensing”:”<div class=”mw-parser-output “></div>”}
Type chmod +x install.sh and press ↵ Enter . If the installation file has a different name, you need to ″install.sh″ with the exact name of the file. This is the operation that activates the executable of the installation file. No confirmation message is displayed after this command.

  • If you don’t see an error message, it means the original file is executable.
  • You can also do this outside of the terminal. The procedure will vary depending on the Linux distribution. To do this on Ubuntu, simply right-click the “.sh” file and select Properties . Click the Permissions tab and check the “Allow executing file as program” box.
READ More:   How to Enable Folder Previews (Windows 10)
Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 7

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 7

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/2/27/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-7-Version-2.jpg/ v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-7-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ 2/27/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-7-Version-2.jpg/v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal- Step-7-Version-2.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight”:547,”licensing”:”<div class=”mw-parser-output “></div>”}
Type bash install.sh and press ↵ Enter . If the file has a different name, you will replace “install.sh” with the correct name of the file. For example, to install Netbeans, you would type ” bash netbeans-8.2-linux.sh ” and press ” Enter “.

  • You can use some other commands like ” sh install.sh ” or ” ./install.sh “. If the file name is not “install.sh”, be sure to replace it with the correct file name, and then press ” Enter “. Use one of the commands above and press ” Enter “. [2] X Research Source
Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 8

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 8

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/fd/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-8-Version-2.jpg/ v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-8-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ f/fd/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-8-Version-2.jpg/v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal- Step-8-Version-2.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight”:547,”licensing”:”<div class=”mw-parser-output “></div>”}
Enter the computer access password and press ↵ Enter . The application installation process will be executed immediately after this operation.
  • Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 9

    Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 9

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/e/e4/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-9-Version-2.jpg/ v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-9-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ e/e4/Execute-INSTALL.sh-Files-in-Linux-Using-Terminal-Step-9-Version-2.jpg/v4-728px-Execute-INSTALL.sh-Files-in-Linux-Using-Terminal- Step-9-Version-2.jpg”,”smallWidth”:460,”smallHeight”:343,”bigWidth”:728,”bigHeight”:543,”licensing”:”<div class=”mw-parser-output “></div>”}
    Follow the on-screen instructions to complete the installation. Depending on the application, you may need to enter additional information to complete the installation.

    • To uninstall certain software using the terminal, you need to enter the command ” dpkg –list ” to open the list of installed programs on the Linux operating system. Find the program you want to uninstall and enter the command ” sudo apt-get –purge remove [program name] ” and press ” Enter “. Enter the password to access the computer and press ” Enter “. All that remains is to perform the necessary instructions to uninstall the program.
  • X

    This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

    The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

    READ More:   How to Stop Tinnitus

    This article has been viewed 14,473 times.

    The Linux operating system offers many simple ways to assist users in installing new programs, such as through the Ubuntu Software Center and Synaptic Package Manager. Even so, some applications still have to be installed from the command console. This article will show you how to install applications from the INSTALL.sh file using the command line.

    In conclusion, running the INSTALL.sh file on Linux using the terminal is a straightforward process that requires only a few simple steps. By following the instructions mentioned above, you can easily execute the installation script and install the desired software or package on your Linux system. It is important to ensure that the .sh file has the necessary permissions set before attempting to run it. Additionally, understanding the basic commands and options in the terminal can help in troubleshooting any potential issues that may arise during the installation process. Overall, running the INSTALL.sh file on Linux using the terminal is an efficient and effective way of installing software or packages, and it allows users to have more control and flexibility over their system.

    Thank you for reading this post How to Run the INSTALL.sh File on Linux Using Terminal at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    1. “Step-by-step guide to running INSTALL.sh file on Linux using terminal”
    2. “Command to execute INSTALL.sh file on Linux terminal”
    3. “Linux terminal: Running INSTALL.sh file – tutorial”
    4. “Installing software on Linux via terminal using INSTALL.sh file”
    5. “Troubleshooting common issues when running INSTALL.sh file on Linux terminal”
    6. “Understanding the purpose of the INSTALL.sh file in Linux”
    7. “Quick tips for successfully executing INSTALL.sh file on Linux terminal”
    8. “Alternative ways to install software on Linux without using INSTALL.sh file”
    9. “Explaining the syntax and parameters of the command to run INSTALL.sh file on Linux”
    10. “Best practices for managing and running INSTALL.sh file on Linux systems”

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « Top 999+ beautiful happy birthday images hd – Amazing Collection beautiful happy birthday images hd Full 4K
    Next Post: Top 999+ Tyron Woodley Wallpaper Full HD, 4K✅Free to Use »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge