-
Install unzip
sudo apt-get install unzip
-
Confirm the latest version number on the terraform website:
https://www.terraform.io/downloads.html
-
Download latest version of the terraform (substituting newer version number if needed)
wget https://releases.hashicorp.com/terraform/0.12.18/terraform_0.12.18_linux_amd64.zip
-
Extract the downloaded file archive
unzip terraform_0.12.18_linux_amd64.zip
-
Move the executable into a directory searched for executable
sudo mv terraform /usr/local/bin/
-
Make sure Terraform works
terraform --version