Terraform: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
<source lang="bash"> | <source lang="bash"> | ||
wget -qO - terraform.gpg https://apt.releases.hashicorp.com/gpg\ | # wget -qO - terraform.gpg https://apt.releases.hashicorp.com/gpg\ | ||
| sudo gpg --dearmor -o /usr/share/keyrings/ | # | sudo gpg --dearmor -o /usr/share/keyrings/terraform-archive-keyring.gpg | ||
# | |||
# sudo echo "deb [arch=$(dpkg --print-architecture)\ | |||
# signed-by=/usr/share/keyrings/terraform-archive-keyring.gpg]\ | |||
# https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/terraform.list | |||
wget -qO - hashicorp.gpg https://apt.releases.hashicorp.com/gpg\ | |||
| sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg | |||
sudo echo "deb [arch=$(dpkg --print-architecture)\ | sudo echo "deb [arch=$(dpkg --print-architecture)\ | ||
signed-by=/usr/share/keyrings/ | signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg]\ | ||
https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/ | https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/hashicorp.list | ||
sudo apt update && sudo apt list --upgradeable | sudo apt update && sudo apt list --upgradeable |
Revision as of 05:36, 12 June 2022
# wget -qO - terraform.gpg https://apt.releases.hashicorp.com/gpg\
# | sudo gpg --dearmor -o /usr/share/keyrings/terraform-archive-keyring.gpg
#
# sudo echo "deb [arch=$(dpkg --print-architecture)\
# signed-by=/usr/share/keyrings/terraform-archive-keyring.gpg]\
# https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/terraform.list
wget -qO - hashicorp.gpg https://apt.releases.hashicorp.com/gpg\
| sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
sudo echo "deb [arch=$(dpkg --print-architecture)\
signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg]\
https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt list --upgradeable
sudo apt upgrade && sudo apt install terraform
terraform version
References
| ||