Introduction
Terraform is the industry-standard Infrastructure as Code (IaC) tool for provisioning and managing cloud resources. This guide shows you how to install Terraform on Manjaro Linux in under 5 minutes.
🎓 Master Terraform — Complete Video Course
Learn Terraform from zero to hero with hands-on labs and real-world projects.
Start Learning →Prerequisites
Before you begin, make sure you have:
- A Manjaro Linux system (physical or virtual machine)
- Root or sudo access
- An active internet connection
- A terminal/shell session
Install Terraform on Manjaro Linux
Step 1: Add the HashiCorp Repository
HashiCorp provides official packages for major Linux distributions. Using the official repository ensures you always get the latest stable version with security updates.
# Terraform is available in the Arch/Manjaro repositories
sudo pacman -Syu terraform
# Alternative: Using tfenv for version management
git clone https://aur.archlinux.org/tfenv.git
cd tfenv && makepkg -si
tfenv install latest
tfenv use latest
Step 2: Verify the Installation
After installation, verify that Terraform is available:
terraform -version
You should see output similar to:
Terraform v1.12.x
on linux_amd64
Step 3: Enable Tab Completion (Optional)
Enable shell autocompletion for faster workflow:
terraform -install-autocomplete
Restart your shell or run source ~/.bashrc to activate.
Alternative: Install from Binary
If you prefer not to use a package manager, you can download the binary directly:
# Download the latest version
TERRAFORM_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | grep -oP '"current_version":"\K[^"]+')
wget "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
# Extract and install
unzip "terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
sudo mv terraform /usr/local/bin/
rm "terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
# Verify
terraform -version
Alternative: Install with tfenv (Version Manager)
tfenv lets you install and switch between multiple Terraform versions:
git clone --depth=1 https://github.com/tfutils/tfenv.git ~/.tfenv
echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
tfenv install latest
tfenv use latest
terraform -version
Your First Terraform Project
Create your first configuration:
mkdir ~/terraform-demo && cd ~/terraform-demo
Create main.tf:
terraform {
required_providers {
local = {
source = "hashicorp/local"
version = "~> 2.0"
}
}
}
resource "local_file" "hello" {
content = "Hello from Terraform on Manjaro Linux!"
filename = "${path.module}/hello.txt"
}
Run:
terraform init
terraform plan
terraform apply -auto-approve
cat hello.txt
Upgrade Terraform
sudo pacman -Syu terraform
Uninstall Terraform
sudo pacman -R terraform
Troubleshooting
Command not found
which terraform
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Permission denied
sudo chmod +x /usr/local/bin/terraform
GPG key errors
# Re-add the repository and refresh keys
Next Steps
- 📖 Terraform Variables Guide
- 🏗️ Terraform Modules Guide
- ☁️ Terraform AWS VPC Example
- 🛠️ Free Terraform Tools
- 🎓 Terraform Udemy Course
🎓 Master Terraform — Complete Video Course
Learn Terraform from zero to hero with hands-on labs and real-world projects.
Start Learning →Conclusion
You’ve successfully installed Terraform on Manjaro Linux. With Terraform, you can now define, provision, and manage infrastructure across AWS, Azure, GCP, and 3,000+ providers.
Install Terraform on other Linux distributions:
- Install Terraform on Ubuntu 24.04 LTS
- Install Terraform on Debian 13
- Install Terraform on Fedora 43
- Install Terraform on Linux Mint 22
- Install Terraform on RHEL 9
- Install Terraform on Amazon Linux 2023
- Install Terraform on openSUSE Tumbleweed
- Install Terraform on Arch Linux
- Install Terraform on Alpine Linux
- Install Terraform on Rocky Linux 9
- Install Terraform on RHEL 10
- Install Terraform on Rocky Linux 10
- Install Terraform on AlmaLinux 10
- Install Terraform on Oracle Linux 10
- Install Terraform on CentOS Stream 10
- Install Terraform on Ubuntu 25.04
- Install Terraform on Fedora 44
- Install Terraform on Pop!_OS 24.04
- Install Terraform on Kali Linux