Learn how to – How To Install Terraform on Fedora 37/36/35/34/33/32.
This guide will help you to Install Terraform on Fedora 37/36/35/34/33/32. Terraform is a cloud-agnostic Infrastructure automation tool used to manage cloud and on-premise resources. Terraform can build, change, and version infrastructure deployed on popular service providers.
With Terraform you can manage Cloud Compute, Networking, Load Balancers, DNS and so on using simple Declarative Programming Language. See the complete list of Terraform Providers.
There are two methods from which we can install terraform on Fedora Linux system. We will cover terraform installation on our Fedora system from YUM repository and manual installation.
Method 1: Install Terraform from YUM repository
Terraform development team provides package repositories for RedHat Enterprise Linux based Linux distributions such as Fedora, CentOS, Rocky Linux and Amazon Linux systems.
sudo dnf clean all
sudo dnf makecache
Add HashiCorp repository to your system by running the following commands:
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
Confirm that the repo was added successfully to the system:
$ sudo dnf repolist
repo id repo name
fedora Fedora 37 - x86_64
fedora-cisco-openh264 Fedora 37 openh264 (From Cisco) - x86_64
fedora-modular Fedora Modular 37 - x86_64
hashicorp Hashicorp Stable - x86_64
updates Fedora 37 - x86_64 - Updates
updates-modular Fedora Modular 37 - x86_64 - Updates
Finally install terraform package on Fedora Linux system:
sudo dnf install terraform
Review dependency tree and proceed with the installation:
....
Transaction Summary
======================================================================================================================================================================================================
Install 2 Packages
Total download size: 13 M
Installed size: 57 M
Is this ok [y/N]: y
Validate successful installation of Terraform on Fedora by checking the verison:
$ terraform --version
Terraform v1.3.7
on linux_amd64
Method 2: Manual installation of Terraform on Fedora
Terraform primary distribution method is a .zip archive which contains single executable file that you can extract and run on your system. You can check the latest release on Terraform releases page before downloading below.
Install wget and curl tools on your Fedora:
sudo dnf install wget curl
Then download the latest release of Terraform in .zip archive format.
TER_VER=`curl -s https://api.github.com/repos/hashicorp/terraform/releases/latest | grep tag_name | cut -d: -f2 | tr -d "
Leave a Reply
You must be logged in to post a comment.