Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

Terraform can be installed on many Linux distributions using their native package managers. 

To install Terraform Refer Install Terraform  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

  1. Install the HashiCorp GPG key.

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

gpg --dearmor | \

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

  1. Verify the key's fingerprint.

gpg --no-default-keyring \

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

--fingerprint

  1. The  gpg command will report the key fingerprint:

         

  1. 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

  1. Download the package information from HashiCorp.

sudo apt update

  1. Install Terraform from the new repository.

sudo apt-get install terraform

  • No labels