Bobcares

How To Install Terraform On CentOS 7/Ubuntu 18.04?

PDF Header PDF Footer

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 updateCopy Code

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 unzipCopy Code

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.zipCopy Code

Then extract the downloaded file.

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

The output must display the Terraform’s directory path.

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

terraform –vCopy Code

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 updateCopy Code

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 unzipCopy Code

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.zipCopy Code

After downloading, extract the file.

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

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

terraform –vCopy Code

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.

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

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

0 Comments

Submit a Comment

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

Get featured on the Bobcares blog and share your expertise with a global tech audience.

WRITE FOR US
server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!