How to install Terraform on Linux

Installing Terraform on Linux is so simple , you no need to actually install like ohter software, you can just download the zip package , extract and update the path.

1.Install unzip package

sudo yum install unzip  
sudo apt-get install unzip  (ubuntu)

2. Confirm the latest version number on the terraform website:


3. Download latest version of the terraform (replace newer version number if needed)

wget https://releases.hashicorp.com/terraform/0.14.7/terraform_0.14.7_linux_amd64.zip
curl -O https://releases.hashicorp.com/terraform/0.14.7/terraform_0.14.7_linux_amd64.zip

4.Extract the file

unzip terraform_0.14.7_linux_amd64.zip

5.Move the binary file to  /usr/local/bin directory:

sudo mv terraform /usr/local/bin/

6.Verify the version

terraform --version 

Another simple method:

#sudo unzip terraform_0.14.7_linux_amd64.zip -d /usr/local/bin
#terraform -v 


Leave a Reply