terraform, rocky linux,

How to install Terraform on Rocky Linux 8

Jul 02, 2021 · 1 min read · Post a comment

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 Terraform on Rocky Linux 8.

Prerequisites

  • Rocky Linux 8
  • sudo privileges

Install Terraform on Rocky Linux 8

Step 1. First, 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 Terraform.

sudo yum install terraform

Step 4. Verify the installation and the latest version using 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.