X Tutup
Skip to content

Commit 354bac8

Browse files
authored
Add Alpine Linux install docs
1 parent eaa64df commit 354bac8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/install_linux.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,23 @@ openSUSE Tumbleweed users can install from the [official distribution repo](http
179179
sudo zypper in gh
180180
```
181181

182+
### Alpine Linux
183+
184+
Alpine Linux users can install from the [stable releases' community packaage repository](https://pkgs.alpinelinux.org/packages?name=github-cli&branch=v3.15).
185+
186+
```bash
187+
apk add github-cli
188+
```
189+
190+
Users wanting the latest version of the CLI without waiting to be backported into their stable release they're using should use the edge release's
191+
community repo through this method below, without mixing packages from stable and unstable repos.[^1]
192+
193+
```bash
194+
echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
195+
apk add github-cli@community
196+
```
197+
182198
[releases page]: https://github.com/cli/cli/releases/latest
183199
[arch linux repo]: https://www.archlinux.org/packages/community/x86_64/github-cli
184200
[arch linux aur]: https://aur.archlinux.org/packages/github-cli-git
201+
[^1]: https://wiki.alpinelinux.org/wiki/Package_management#Repository_pinning

0 commit comments

Comments
 (0)
X Tutup