From e7e2c8e3ab1c98eab880b4c976d1684e46b1bb1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Jan=C4=8Da=C5=99=C3=ADk?= Date: Thu, 22 Sep 2022 11:27:56 +0200 Subject: [PATCH] Add instructions for yum (e.g. Amazon Linux 2) Installing with `yum` works similar to `dnf` - I haven't had any issues so far. --- docs/install_linux.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/install_linux.md b/docs/install_linux.md index 5e4d31925..3952f10a5 100644 --- a/docs/install_linux.md +++ b/docs/install_linux.md @@ -53,6 +53,24 @@ Upgrade: sudo dnf update gh ``` +### Amazon Linux 2 (yum) + +Install using our package repository for immediate access to latest releases: + +```bash +sudo yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo +sudo yum install gh +``` + +> **Note** +> We were recently forced to change our GPG signing key. If you've added the repository previously and now you're getting a GPG signing key error, disable the repository first with `sudo yum-config-manager --disable gh-cli` and add it again with `sudo yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo`. + +Upgrade: + +```bash +sudo yum update gh +``` + ### openSUSE/SUSE Linux (zypper) Install: