terraform,

How to install Terraform on Rocky Linux

Jul 02, 2021 · 1 min read · Post a comment
How to install Terraform on Rocky Linux

Finally, there is a replacement on the CentOS distro. The fresh and new Rocky Linux will replace the Centos, so the Centos team announces that they are going to focus on the CentOS Stream. In this tutorial I’ll cover the steps on how to install terrafrom on Rocky Linux 8.

Prerequisites

  • Rocky Linux 8
  • sudo access

Install Terraform on Rocky Linux 8

Step 1. Firstly, install yum-config-manager:

sudo yum install yum-utils

Step 2. Now I’m going to use the yum-config-manager and add the official HashiCorp Linux repository:

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

Step 3. Install it:

sudo yum install terraform

Step 4. Verify the installation and the latest version with the following command:

terraform  version

Output:

Terraform v1.0.1

Conclusion

This tutorial shows you how to install Terraform CLI on Rocky Linux 8. For more info please visit the official documentation at terraform documentation . Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.