You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/install_linux.md
+15-35Lines changed: 15 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Installing gh on Linux and FreeBSD
1
+
# Installing gh on Linux and BSD
2
2
3
3
Packages downloaded from https://cli.github.com or from https://github.com/cli/cli/releases
4
4
are considered official binaries. We focus on popular Linux distros and
@@ -7,15 +7,9 @@ the following CPU architectures: `i386`, `amd64`, `arm64`, `armhf`.
7
7
Other sources for installation are community-maintained and thus might lag behind
8
8
our release schedule.
9
9
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
-
12
10
## Official sources
13
11
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)
19
13
20
14
Install:
21
15
@@ -26,7 +20,7 @@ sudo apt update
26
20
sudo apt install gh
27
21
```
28
22
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`.
30
24
31
25
Upgrade:
32
26
@@ -72,16 +66,13 @@ sudo zypper update gh
72
66
*[Download release binaries][releases page] that match your platform; or
73
67
*[Build from source](./source.md).
74
68
75
-
### openSUSE/SUSE Linux (zypper)
76
-
77
-
Install and upgrade:
69
+
## Unofficial, community-supported methods
78
70
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.
81
72
82
-
##Unofficial, Community-supported methods
73
+
### Snap (do not use)
83
74
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_.
85
76
86
77
### Arch Linux
87
78
@@ -101,13 +92,6 @@ Android 7+ users can install via [Termux](https://wiki.termux.com/wiki/Main_Page
101
92
pkg install gh
102
93
```
103
94
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
-
111
95
### FreeBSD
112
96
113
97
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)):
122
106
pkg install gh
123
107
```
124
108
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
+
125
117
### Funtoo
126
118
127
119
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
175
167
sudo zypper in gh
176
168
```
177
169
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)
> 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.
0 commit comments