How to install Terraform on Linux?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 10 2025
0171

To install Terraform on Linux, follow these steps:

  1. Download the Terraform Binary:
    Open a terminal and run the following command to download the latest version of Terraform. Replace VERSION with the desired version number (e.g., 1.3.7):

    wget https://releases.hashicorp.com/terraform/VERSION/terraform_VERSION_linux_amd64.zip
  2. Unzip the Downloaded File:
    Install unzip if you don't have it already, and then unzip the downloaded file:

    sudo apt-get install unzip  # For Ubuntu/Debian
    unzip terraform_VERSION_linux_amd64.zip
  3. Move the Terraform Binary to a Directory in Your PATH:
    Move the Terraform binary to /usr/local/bin:

    sudo mv terraform /usr/local/bin/
  4. Verify the Installation:
    Check if Terraform is installed correctly by running:

    terraform -version

This should display the installed version of Terraform. If you encounter any issues, please let me know!

0 Comments

no data
Be the first to share your comment!