Skip to content

Commit bd54ae5

Browse files
committed
fix formatting
1 parent add1e7f commit bd54ae5

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

‎website/docs/cli/install/apt.mdx‎

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,33 +27,35 @@ package repositories.
2727

2828
## Repository Configuration
2929

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.
3131

32-
Download the signing key to a new keyring.
32+
To configure your repository:
3333

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.
3735

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
38+
```
3939

40-
```bash
41-
gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint
42-
```
43-
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.
4441

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`.
42+
```bash
43+
gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint
44+
```
45+
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**.
4646

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`.
5048

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
51+
```
5252

53-
```bash
54-
sudo apt update
55-
sudo apt install terraform
56-
```
53+
1. Install Terraform from the new repository.
54+
55+
```bash
56+
sudo apt update
57+
sudo apt install terraform
58+
```
5759

5860
## Supported Architectures
5961

0 commit comments

Comments
 (0)