---
title: "Linux/Ubuntu"
canonical: "https://docs.infoblox.com/space/DeploymentGuideTerraformNIOSProvider/807043512/Linux%2FUbuntu"
format: markdown
---
Terraform can be installed on many Linux distributions using their native package managers. 

To install Terraform Refer [Install Terraform](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)  on Ubuntu or Debian Linux, use the following steps:


1. Open a terminal window.
2. Ensure that your system is up to date and you have installed the  `gnupg`,` software-properties-common`, and  `curl` packages installed. You will use these packages to verify HashiCorp's GPG signature and install HashiCorp's Debian package repository.

`sudo apt-get update && sudo apt-get install -y gnupg software-properties-common`

![image](media://edaf6e9b-cda4-474f-acbe-a40051d141a9)

3. Install the HashiCorp <u>[GPG key](https://apt.releases.hashicorp.com/gpg)</u>.

`wget -O- https://apt.releases.hashicorp.com/gpg | \`

`gpg --dearmor | \`

`sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null`

![image](media://ec05a47d-48bd-40e8-a709-e7c58cf0cd60)



4. Verify the key's fingerprint.

`gpg --no-default-keyring \`

`--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \`

`--fingerprint`

5. The  `gpg` command will report the key fingerprint:

         

![image](media://0b4933e5-6578-4399-8e23-1c1f05642d4b)


6. Add the official HashiCorp repository to your system. The `lsb_release -cs ` command finds the distribution release codename for your current system, such as` buster`, `groovy`, or` sid `.

`echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \`

`https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \`

`sudo tee /etc/apt/sources.list.d/hashicorp.list`

7. Download the package information from HashiCorp.

`sudo apt update`

8. Install Terraform from the new repository.

`sudo apt-get install terraform`

![image](media://edaf6e9b-cda4-474f-acbe-a40051d141a9)