Merge pull request #3419 from zxaos/patch-1

add Debian install variant without add-apt-repository
This commit is contained in:
Nate Smith 2021-04-20 12:13:59 -05:00 committed by GitHub
commit 5821065ac0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ If none of our official binaries, packages, repositories, nor community sources
### Debian, Ubuntu Linux (apt)
Install:
Install (Using apt-key):
```bash
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
@ -29,6 +29,13 @@ sudo apt install gh
**Note**: most systems will have `apt-add-repository` already. If you get a _command not found_
error, try running `sudo apt install software-properties-common` and trying these steps again.
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
sudo apt update
sudo apt install gh
```
Upgrade: