Skip to content

Commit 1f94ee4

Browse files
committed
docs: add manual PGP key verification commands
Signed-off-by: Babak K. Shandiz <babakks@github.com>
1 parent 2eceb39 commit 1f94ee4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

docs/install_linux.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ sudo apt install gh
4141
```
4242

4343
> [!TIP]
44-
> To verify downloaded PGP keys, you can run this and match the listed fingerprints with those at the top of this document:
44+
> To verify PGP keys before installing `gh`, you can run this and match the listed fingerprints with those at the top of this document:
4545
>
4646
> ```shell
47-
> gpg --show-keys /etc/apt/keyrings/githubcli-archive-keyring.gpg
47+
> curl -fsSL -o - https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --show-keys
4848
> ```
4949
5050
### RPM
@@ -62,6 +62,12 @@ These packages are supported by the GitHub CLI maintainers with updates powered
6262
6363
> [!TIP]
6464
> During installation, you may be prompted to confirm the import of PGP keys. You can verify the keys with the list of fingerprints at the top of this document.
65+
>
66+
> To verify the PGP keys before installing `gh`, you can run the following command and match the listed fingerprints with those at the top of this document:
67+
>
68+
> ```shell
69+
> curl -fsSL -o - https://cli.github.com/packages/githubcli-archive-keyring.asc | gpg --show-keys
70+
> ```
6571
6672
#### DNF5
6773

0 commit comments

Comments
 (0)