Skip to content

Instantly share code, notes, and snippets.

@brxyxn
Last active June 14, 2022 03:55
Show Gist options
  • Save brxyxn/d75e1309116853168c82c6c91ee6e165 to your computer and use it in GitHub Desktop.
Save brxyxn/d75e1309116853168c82c6c91ee6e165 to your computer and use it in GitHub Desktop.
Script to install Terraform in Ubuntu 22.04 | Using gpg instead of apt-key (deprecated)
#!/bin/bash
# Install Terraform in Ubuntu 22.04 | using gpg instead of apt-key (deprecated)
curl https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/hashicorp.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt udpate
sudo apt install -y terraform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment