Skip to content

Commit f4eb60d

Browse files
authored
add Debian install variant without add-apt-repository
1 parent a12cbe7 commit f4eb60d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/install_linux.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If none of our official binaries, packages, repositories, nor community sources
1313

1414
### Debian, Ubuntu Linux (apt)
1515

16-
Install:
16+
Install (Using apt-key):
1717

1818
```bash
1919
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
@@ -29,6 +29,13 @@ sudo apt install gh
2929
**Note**: most systems will have `apt-add-repository` already. If you get a _command not found_
3030
error, try running `sudo apt install software-properties-common` and trying these steps again.
3131

32+
Install (without add-apt-repository, with limited keyring scope):
33+
```bash
34+
sudo apt-key --keyring /usr/share/keyrings/githubcli-archive-keyring.gpg adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
35+
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
36+
sudo apt update
37+
sudo apt install gh
38+
```
3239

3340
Upgrade:
3441

0 commit comments

Comments
 (0)