Skip to content

Commit 8a56359

Browse files
authored
Merge pull request cli#4144 from cli/install-docs
Refresh Linux & BSD installation docs
2 parents 45b358b + 810c421 commit 8a56359

File tree

2 files changed

+17
-37
lines changed

2 files changed

+17
-37
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ If anything feels off, or if you feel that some functionality is missing, please
4141

4242
Additional Conda installation options available on the [gh-feedstock page](https://github.com/conda-forge/gh-feedstock#installing-gh).
4343

44-
### Linux
44+
### Linux & BSD
4545

4646
`gh` is available via [Homebrew](#homebrew), [Conda](#Conda), and as downloadable binaries from the [releases page][].
4747

48-
For more information and distro-specific instructions, see the [Linux installation docs](./docs/install_linux.md).
48+
For instructions on specific distributions and package managers, see [Linux & BSD installation](./docs/install_linux.md).
4949

5050
### Windows
5151

docs/install_linux.md

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Installing gh on Linux and FreeBSD
1+
# Installing gh on Linux and BSD
22

33
Packages downloaded from https://cli.github.com or from https://github.com/cli/cli/releases
44
are considered official binaries. We focus on popular Linux distros and
@@ -7,15 +7,9 @@ the following CPU architectures: `i386`, `amd64`, `arm64`, `armhf`.
77
Other sources for installation are community-maintained and thus might lag behind
88
our release schedule.
99

10-
If none of our official binaries, packages, repositories, nor community sources work for you, we recommend using our `Makefile` to build `gh` from source. It's quick and easy.
11-
1210
## Official sources
1311

14-
### Debian, Ubuntu Linux (apt)
15-
16-
:warning: This will only work for the [architectures we officially support](/.goreleaser.yml#L27).
17-
18-
The below should work for any debian-based distribution. You can change `stable` to a specific codename [we support](/.github/workflows/releases.yml#L83) if that is your preference.
12+
### Debian, Ubuntu Linux, Raspberry Pi OS (apt)
1913

2014
Install:
2115

@@ -26,7 +20,7 @@ sudo apt update
2620
sudo apt install gh
2721
```
2822

29-
**Note**: If you get _"gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory"_ error, try installing the `dirmngr` package. Run `sudo apt-get install dirmngr` and repeat the steps above.
23+
**Note**: If you get the error _"gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory"_, try installing the `dirmngr` package: `sudo apt install dirmngr`.
3024

3125
Upgrade:
3226

@@ -72,16 +66,13 @@ sudo zypper update gh
7266
* [Download release binaries][releases page] that match your platform; or
7367
* [Build from source](./source.md).
7468

75-
### openSUSE/SUSE Linux (zypper)
76-
77-
Install and upgrade:
69+
## Unofficial, community-supported methods
7870

79-
1. Download the `.rpm` file from the [releases page][];
80-
2. Install the downloaded file: `sudo zypper in gh_*_linux_amd64.rpm`
71+
The GitHub CLI team does not maintain the following packages or repositories and thus we are unable to provide support for those installation methods.
8172

82-
## Unofficial, Community-supported methods
73+
### Snap (do not use)
8374

84-
The core GitHub CLI team does not maintain the following packages or repositories. They are unofficial and we are unable to provide support or guarantees for them. They are linked here as a convenience and their presence does not imply continued oversight from the CLI core team. Users who choose to use them do so at their own risk.
75+
There are [so many issues with Snap](https://github.com/casperdcl/cli/issues/7) as a runtime mechanism for apps like GitHub CLI that our team suggests _never installing gh as a snap_.
8576

8677
### Arch Linux
8778

@@ -101,13 +92,6 @@ Android 7+ users can install via [Termux](https://wiki.termux.com/wiki/Main_Page
10192
pkg install gh
10293
```
10394

104-
### Homebrew (Linuxbrew)
105-
106-
Linuxbrew users can install it as a [brew package](https://formulae.brew.sh/formula/gh#default):
107-
```bash
108-
brew install gh
109-
```
110-
11195
### FreeBSD
11296

11397
FreeBSD users can install from the [ports collection](https://www.freshports.org/devel/gh/):
@@ -122,6 +106,14 @@ Or via [pkg(8)](https://www.freebsd.org/cgi/man.cgi?pkg(8)):
122106
pkg install gh
123107
```
124108

109+
### OpenBSD
110+
111+
In -current, or in releases starting from 7.0, OpenBSD users can install from packages:
112+
113+
```
114+
pkg_add github-cli
115+
```
116+
125117
### Funtoo
126118

127119
Funtoo Linux has an autogenerated github-cli package, located in [dev-kit](https://github.com/funtoo/dev-kit/tree/1.4-release/dev-util/github-cli), which can be installed in the following way:
@@ -175,18 +167,6 @@ openSUSE Tumbleweed users can install from the [official distribution repo](http
175167
sudo zypper in gh
176168
```
177169

178-
### Snaps
179-
180-
Many Linux distro users can install using Snapd from the [Snap Store](https://snapcraft.io/gh) or the associated [repo](https://github.com/casperdcl/cli/tree/snap)
181-
182-
```bash
183-
sudo snap install --edge gh && snap connect gh:ssh-keys
184-
```
185-
> Snaps are auto-updated every 6 hours. `Snapd` is required and is available on a wide range of Linux distros.
186-
> Find out which distros have Snapd pre-installed and how to install it in the [Snapcraft Installation Docs](https://snapcraft.io/docs/installing-snapd)
187-
>
188-
> **Note:** `snap connect gh:ssh-keys` is needed for all authentication and SSH needs.
189-
190170
[releases page]: https://github.com/cli/cli/releases/latest
191171
[arch linux repo]: https://www.archlinux.org/packages/community/x86_64/github-cli
192172
[arch linux aur]: https://aur.archlinux.org/packages/github-cli-git

0 commit comments

Comments
 (0)