DevOps

Install Terraform on CentOS Using Package Repository

The HashiCorp repository contains other non-Terraform packages that will be available for installing after you add the repository.

Follow the steps to install Terraform from the official HashiCorp repository on a CentOS system.

1. Install the yum-utils tools:

sudo yum install -y yum-utils
Install yum-utils on CentOS output.

2. Add the HashiCorp repository:

sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo

3. Finally, install Terraform using the yum package manager:

sudo yum -y install terraform
Terraform installed output on CentOS

The output show that Terraform is installed. You can double-check by running the terraform -version command to see the installed Terraform version.

Loading

Leave a Reply

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