You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd54ae5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: website/docs/cli/install/apt.mdx
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,33 +27,35 @@ package repositories.
27
27
28
28
## Repository Configuration
29
29
30
-
The Terraform packages are signed using a private key controlled by HashiCorp, so first you must configure your system to trust that HashiCorp key for package authentication.
30
+
The Terraform packages are signed using a private key controlled by HashiCorp, so you must configure your system to trust that HashiCorp key for package authentication.
31
31
32
-
Download the signing key to a new keyring.
32
+
To configure your repository:
33
33
34
-
```bash
35
-
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
36
-
```
34
+
1. Download the signing key to a new keyring.
37
35
38
-
Verify the key's fingerprint.
36
+
```bash
37
+
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
The fingerprint must match `E8A0 32E0 94D8 EB4E A189 D270 DA41 8C88 A321 9F7B`. You can also verify the key on [Security at HashiCorp](https://www.hashicorp.com/security) under **Linux Package Checksum Verification**.
40
+
1. Verify the key's fingerprint.
44
41
45
-
Add the official HashiCorp repository to your system. The `lsb_release -cs` command to find the distribution release codename for your current system, such as `buster`, `groovy`, or `sid`.
The fingerprint must match `E8A0 32E0 94D8 EB4E A189 D270 DA41 8C88 A321 9F7B`. You can also verify the key on [Security at HashiCorp](https://www.hashicorp.com/security) under **Linux Package Checksum Verification**.
46
46
47
-
```bash
48
-
echo"deb [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
49
-
```
47
+
1. Add the official HashiCorp repository to your system. The `lsb_release -cs` command finds the distribution release codename for your current system, such as `buster`, `groovy`, or `sid`.
50
48
51
-
Install Terraform from the new repository.
49
+
```bash
50
+
echo"deb [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
0 commit comments