How to install Terraform on Debian 11

Nov 06, 2021 · 1 min read · Post a comment

Today I’ll be writing about terraform installation on Debian 11. The steps are pretty easy, so you just have to follow them and accomplish the installation process. Let’s hop in.


  • Debian 11
  • sudo privileges

Install Terraform on Debian 11

Step 1. Let’s add the HashiCorp GPG key.

curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -

Step 2. The second step is to add the HashiCorp Linux repo as well.

sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"

Step 3. Once step 1 and step 2 are done successfully, update system packages.

sudo apt-get update

Step 4. To install Terraform on Debian 11, run:

sudo apt-get install terraform

Step 5. Validate installation and check TF version.

terraform -v


Terraform v1.0.10
on linux_amd64


This tutorial is strictly aimed to show you the installation of Terraform on Debian 11. If you have any concerns or issues while doing the steps please don’t hesitate to raise the issue down in the comment section. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.