add Debian install variant without add-apt-repository #3419
Conversation
|
Hi! Thanks for the pull request. Please ensure that this change is linked to an issue by mentioning an issue number in the description of the pull request. If this pull request would close the issue, please put the word 'Fixes' before the issue number somewhere in the pull request body. If this is a tiny change like fixing a typo, feel free to ignore this message. |
| @@ -13,7 +13,7 @@ If none of our official binaries, packages, repositories, nor community sources | |||
|
|
|||
| ### Debian, Ubuntu Linux (apt) | |||
|
|
|||
| Install: | |||
kaldrako1
Apr 14, 2021
Authorities Authenticator
Authorities Authenticator
| Install (without add-apt-repository, with limited keyring scope): | ||
| ```bash | ||
| sudo apt-key --keyring /usr/share/keyrings/githubcli-archive-keyring.gpg adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 | ||
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/github-cli2.list > /dev/null |
kaldrako1
Apr 14, 2021
Authenticator passed
Authenticator passed
|
thanks! I'll look into this and do some testing locally. Is there a reason to not standardize on this new suggestion instead of mentioning |
|
I don't think there's a reason not to standardize on the newer style, just didn't want to overstep |
|
I like these new instructions much more :D I will circle back and consolidate this section later. |
The Debian docs recommend installing third-party repos with limited keyring scopes these days.
This PR adds a variant to the install instruction for Debian-compatible distros that uses this method (and doesn't require
software-properties-common) sinceadd-apt-keyis deprecated.