Skip to content

Commit

Permalink
Add instructions for yum (e.g. Amazon Linux 2)
Browse files Browse the repository at this point in the history
Installing with `yum` works similar to `dnf` - I haven't had any issues so far.
  • Loading branch information
jonasjancarik authored Sep 22, 2022
1 parent 55edf2a commit e7e2c8e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/install_linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e7e2c8e

Please sign in to comment.