• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

how to install terraform in Linux : CentOS-Ubuntu

October 14, 2018 by Sharad Chhetri

In this post we will learn how to install terraform on linux operating system. Terraform is open source infrastructure automation tool.In other words, for infrastructure as code you can use terraform. It works basically with providers like aws, azure, vmware etc. Due to hypbrid network like cloud and on premises network, terraform is playing a instrumental role.

This post will help you to set your first foundation that is installing terraform.

Installing Terraform on CentOS/RHEL system

  1. Install wget and unzip package
  2. sudo yum install wget unzip
    
  3. Download terraform package
  4. We will strongly suggest to always download and use latest package. Visit to terraform website to download terraform latest package.

    wget https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip
    
  5. Unzip the downloaded package
  6. By using unzip command, it will extract one binary file called ‘terraform’

    unzip terraform_0.11.8_linux_amd64.zip 
    
  7. Copy unzipped terraform file to /usr/local/bin
  8. sudo cp terraform /usr/local/bin
    
  9. Give executable permission
  10. sudo chmod +x /usr/local/bin
    
  11. Now check terraform
  12. Because we have copied the binary file to /usr/local/bin, the terraform command is available. You can check its absolute path by using command which terraform

    The below command will show the version of terraform.

    terraform --version 
    

Installing Terraform on Ubuntu/Debian system

  1. Install wget and unzip package
  2. sudo apt-get install wget unzip
    
  3. Download terraform package
  4. Visit to terraform website and download terraform latest package.

    wget https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip
    
  5. Unzip downloaded package
  6. Unzip the downloaded package.

    unzip terraform_0.11.8_linux_amd64.zip 
    
  7. Copy unzipped terraform file to /usr/local/bin
  8. sudo cp terraform /usr/local/bin
    
  9. Give executable permission
  10. sudo chmod +x /usr/local/bin
    
  11. Now check terraform
  12. Because terraform extracted file copied to /usr/local/bin, the terraform command is available. Check the absolute path by command which terraform

    Check the version of terraform by given below command.

    terraform --version 
    

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to add/install Ubuntu fonts in CentOS/Red Hat Linux
  2. How to find CentOS Linux release version on CentOS 7 series
  3. Recover Linux Grub Password in linux rescue mode CentOS/Red Hat
  4. make command not found in linux CentOS Red Hat ubuntu Debian
  5. Install MySQL Server 5.6 in CentOS 6.x and Red Hat 6.x Linux
  6. Install Ubuntu font family for individual user in CentOS/Red Hat
  7. Install redis 3.0 from source on Ubuntu 14.04 / CentOS 7 / RHEL 7
  8. Install Ansible on Ubuntu / CentOS / RHEL
  9. Sharing server Migration from CentOS 6 to CentOS 7
  10. How to upgrade to CentOS 6.6 from CentOS 6.x series

Filed Under: Linux Tagged With: terraform

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to find swap partition or file in linux

How to convert float to integer number

How to zip the directory in linux with command line

convert space into new line using sed command

find command to search keyword in files recursively in linux

How to put slider shortcode only in home page in WordPress

Allow wget and yum in iptable

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy