@@ -33,39 +33,37 @@ sudo apt install gh
3333> [ !NOTE]
3434> If errors regarding GPG signatures occur, see [ cli/cli #9569 ] ( https://github.com/cli/cli/issues/9569 ) for steps to fix this.
3535
36- ### Fedora, CentOS, Red Hat Enterprise Linux (dnf )
36+ ### Fedora, CentOS, Red Hat Enterprise Linux (dnf5 )
3737
3838Install from our package repository for immediate access to latest releases:
3939
4040``` bash
41- sudo dnf install ' dnf-command(config-manager) '
42- sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
41+ sudo dnf install dnf5-plugins
42+ sudo dnf config-manager addrepo --from-repofile= https://cli.github.com/packages/rpm/gh-cli.repo
4343sudo dnf install gh --repo gh-cli
4444```
4545
46- <details >
47- <summary >Show dnf5 commands</summary >
46+ These commands apply for ` dnf5 ` . If you're using ` dnf4 ` , commands will vary slightly.
4847
49- If you're using ` dnf5 ` , commands will vary slightly:
48+ <details >
49+ <summary >Show dnf4 commands</summary >
5050
5151``` bash
52- sudo dnf5 install dnf5-plugins
53- sudo dnf5 config-manager addrepo --from-repofile= https://cli.github.com/packages/rpm/gh-cli.repo
54- sudo dnf5 install gh --repo gh-cli
52+ sudo dnf4 install ' dnf-command(config-manager) '
53+ sudo dnf4 config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
54+ sudo dnf4 install gh --repo gh-cli
5555```
56-
57- For more details, check out the [ ` dnf5 config-manager ` documentation] ( https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html ) .
5856</details >
5957
58+ > [ !NOTE]
59+ > If errors regarding GPG signatures occur, see [ cli/cli #9569 ] ( https://github.com/cli/cli/issues/9569 ) for steps to fix this.
60+
6061Alternatively, install from the [ community repository] ( https://packages.fedoraproject.org/pkgs/gh/gh/ ) :
6162
6263``` bash
6364sudo dnf install gh
6465```
6566
66- > [ !NOTE]
67- > If errors regarding GPG signatures occur, see [ cli/cli #9569 ] ( https://github.com/cli/cli/issues/9569 ) for steps to fix this.
68-
6967Upgrade:
7068
7169``` bash
0 commit comments