Update installation instructions for Fedora (#5204)

gh-cli has entered fedora's official repository and can be installed directly without adding a third-party repository.

Co-authored-by: Mislav Marohnić <mislav@github.com>
This commit is contained in:
Hanjingxue Boling 2022-02-18 02:41:26 +08:00 committed by GitHub
parent c5dbf20ed4
commit f4b4a4e18f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,13 +29,19 @@ sudo apt install gh
### Fedora, CentOS, Red Hat Enterprise Linux (dnf)
Install:
Install from our package repository for immediate access to latest releases:
```bash
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh
```
Alternatively, install from the [community repository](https://packages.fedoraproject.org/pkgs/gh/gh/):
```bash
sudo dnf install gh
```
Upgrade:
```bash