There are two ways to install Terraform on CentOS 9 Stream.
- Through Terraform Repository.
- Manually.
Here I’m going to show you how to install Terraform on CentOS 9 through Terraform Repository.
Prerequisites
- CentOS 9 Stream
- sudo privileges
Install Terraform on CentOS 9 Stream
Step 1. Add Terraform Repo.
sudo dnf install dnf-utils
yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
Step 2. Install Terraform.
sudo dnf install terraform
Step 3. Verify the installation.
terraform version
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.