Commit 9d82c65e authored by Laura Pacilio's avatar Laura Pacilio
Browse files

Merge pull request #30956 from tigerblue77/patch-1

Update apt.mdx
parent 58f052bd
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment