From 354bac82b3a513a5796694de262129b40e12ece9 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Eugenio Halili Date: Fri, 24 Dec 2021 18:43:22 +0800 Subject: [PATCH] Add Alpine Linux install docs --- docs/install_linux.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/install_linux.md b/docs/install_linux.md index b11c2faa9..eda70db95 100644 --- a/docs/install_linux.md +++ b/docs/install_linux.md @@ -179,6 +179,23 @@ openSUSE Tumbleweed users can install from the [official distribution repo](http sudo zypper in gh ``` +### Alpine Linux + +Alpine Linux users can install from the [stable releases' community packaage repository](https://pkgs.alpinelinux.org/packages?name=github-cli&branch=v3.15). + +```bash +apk add github-cli +``` + +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 +community repo through this method below, without mixing packages from stable and unstable repos.[^1] + +```bash +echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories +apk add github-cli@community +``` + [releases page]: https://github.com/cli/cli/releases/latest [arch linux repo]: https://www.archlinux.org/packages/community/x86_64/github-cli [arch linux aur]: https://aur.archlinux.org/packages/github-cli-git +[^1]: https://wiki.alpinelinux.org/wiki/Package_management#Repository_pinning