From a3f353d2f7f942e2c83aeae73529dcd054e5a443 Mon Sep 17 00:00:00 2001 From: Miroma <136986257+its-miroma@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:47:45 +0100 Subject: [PATCH] Set `dnf5` commands as default Fedora 41 is now stable! :tada: Closes #9840 Co-authored-by: Melamit64 <151834564+melamit@users.noreply.github.com> --- docs/install_linux.md | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/docs/install_linux.md b/docs/install_linux.md index 9be6aed9b..5943bba24 100644 --- a/docs/install_linux.md +++ b/docs/install_linux.md @@ -33,39 +33,37 @@ sudo apt install gh > [!NOTE] > If errors regarding GPG signatures occur, see [cli/cli#9569](https://github.com/cli/cli/issues/9569) for steps to fix this. -### Fedora, CentOS, Red Hat Enterprise Linux (dnf) +### Fedora, CentOS, Red Hat Enterprise Linux (dnf5) Install from our package repository for immediate access to latest releases: ```bash -sudo dnf install 'dnf-command(config-manager)' -sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo +sudo dnf install dnf5-plugins +sudo dnf config-manager addrepo --from-repofile=https://cli.github.com/packages/rpm/gh-cli.repo sudo dnf install gh --repo gh-cli ``` -
-Show dnf5 commands +These commands apply for `dnf5`. If you're using `dnf4`, commands will vary slightly. -If you're using `dnf5`, commands will vary slightly: +
+Show dnf4 commands ```bash -sudo dnf5 install dnf5-plugins -sudo dnf5 config-manager addrepo --from-repofile=https://cli.github.com/packages/rpm/gh-cli.repo -sudo dnf5 install gh --repo gh-cli +sudo dnf4 install 'dnf-command(config-manager)' +sudo dnf4 config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo +sudo dnf4 install gh --repo gh-cli ``` - -For more details, check out the [`dnf5 config-manager` documentation](https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html).
+> [!NOTE] +> If errors regarding GPG signatures occur, see [cli/cli#9569](https://github.com/cli/cli/issues/9569) for steps to fix this. + Alternatively, install from the [community repository](https://packages.fedoraproject.org/pkgs/gh/gh/): ```bash sudo dnf install gh ``` -> [!NOTE] -> If errors regarding GPG signatures occur, see [cli/cli#9569](https://github.com/cli/cli/issues/9569) for steps to fix this. - Upgrade: ```bash