Installing Terraform on Ubuntu 22.04
First add HashiCorp’s GPG key.
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
Now add HashiCorp’s repository to Ubuntu.
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
Update system packages and then install Terraform via apt.
sudo apt update; sudo apt install terraform -y
Check the Terraform version to confirm it has been installed.
terraform -version
Add Terraform to your resume and go apply for DevOps jobs.