How to Install Terraform (v1.0.5) on Ubuntu 20.04 Linux using apt method

How to Install Terraform (v1.0.5) on Ubuntu 20.04 Linux using apt method

Install Terraform (v1.0.5) using apt

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

sudo apt install curl

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

sudo apt update

sudo apt install terraform

(The below command is there only to check the installation and version info)

terraform -v


(If you want to remove terraform from your machine, then use please command)

sudo rm -rf /usr/bin/terraform

InstallTerraform(v1.0.5)

Post a Comment

0 Comments