Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3f353d

Browse files
Set dnf5 commands as default
Fedora 41 is now stable! 🎉 Closes #9840 Co-authored-by: Melamit64 <[email protected]>
1 parent 14d339d commit a3f353d

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

docs/install_linux.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3838
Install 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
4343
sudo 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+
6061
Alternatively, install from the [community repository](https://packages.fedoraproject.org/pkgs/gh/gh/):
6162

6263
```bash
6364
sudo 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-
6967
Upgrade:
7068

7169
```bash

0 commit comments

Comments
 (0)