- Install Terraform
brew tap hashicorp/tap && brew install hashicorp/tap/terraform
Check it worked
- Check the version
terraform -version
Undo it
- Uninstall Terraform
brew uninstall terraform
- Add HashiCorp's package sourceNeeds sudo
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) 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 - Install TerraformNeeds sudo
sudo apt update && sudo apt install -y terraform
Check it worked
- Check the version
terraform -version
Undo it
- Uninstall TerraformNeeds sudo
sudo apt remove -y terraform
- Install Terraform
winget install Hashicorp.TerraformClose and reopen PowerShell afterwards.
Check it worked
- Check the version
terraform -version
Undo it
- Uninstall Terraform
winget uninstall Hashicorp.Terraform