Merge pull request #30956 from tigerblue77/patch-1

Update apt.mdx
pull/30967/head
Laura Pacilio 4 years ago committed by GitHub
commit 78f90a64b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,14 +32,14 @@ so in most situations the first step would be to configure your system to trust
that HashiCorp key for package authentication. For example:
```bash
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
wget -qO - terraform.gpg https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/terraform-archive-keyring.gpg
```
After registering the key, you can add the official HashiCorp repository to
your system:
```bash
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
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
```
The above command line uses the following sub-shell commands:

Loading…
Cancel
Save