Bobcares

How To Install Terraform On CentOS 7/Ubuntu 18.04?

by | Oct 16, 2020

Trying to install terraform on CentOS 7/Ubuntu 18.04? Here’s how we do it.

Here at Bobcares, we have seen several such CentOS/Ubuntu related installations as part of our Server Management Services for web hosts and online service providers.

Today we’ll take a look at how to install terraform on CentOS 7/Ubuntu 18.04.

 

A few facts about Terraform

Terraform is a software that allows managing cloud infrastructure resources from code efficiently.

Also, it called as an “Infrastructure as Code” tool as it uses a configuration file to manage resources.

Moreover, it supports cloud service providers like AWS, Google Cloud Platform, Azure, and many others.

 

How to install terraform on CentOS 7/Ubuntu 18.04

Now let’s see how our Support Engineers install the Terraform.

 

Installing Terraform on CentOS 7

First, update the repository lists by running the below command.

sudo yum update

Then you would need to have a wget and unzip. In case, if you don’t have it then install them by running the below command.

sudo yum install wget unzip

Now download the Terraform from the developer’s website by running the following command.

sudo wget https://releases.hashicorp.com/terraform/0.12.2/terraform_0.12.2_linux_amd64.zip

Then extract the downloaded file.

sudo unzip ./terraform_0.12.2_linux_amd64.zip –d /usr/local/bin

The output must display the Terraform’s directory path.

Finally, verify that the Terraform is able to accept the commands.

terraform –v

As a result, it must display the Terraform v.0.12.2.

 

Installing Terraform on Ubuntu 18.04

First, you need to update the repository lists. For that run the below command.

sudo apt-get update

You can run the below command to install the wget and unzip, in case if you don’t have it installed.

sudo apt-get install wget unzip

Now run the below wget utility to download the Terraform.

sudo wget https://releases.hashicorp.com/terraform/0.12.2/terraform_0.12.2_linux_amd64.zip

After downloading, extract the file.

sudo unzip ./ terraform_0.12.2_linux_amd64.zip –d /usr/local/bin

Finally, verify that the Terraform is able to accept commands.

terraform –v

As a result, the output must display Terraform v.0.12.2.

[Need any further assistance with CentOS/Ubuntu queries? – We’re available to help you]

 

Conclusion

Today, we saw how our Support Engineers install terraform on CentOS 7/Ubuntu 18.04.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.