From 4de63ac75b99e42ac6d2bd6504056c26335f5a2b Mon Sep 17 00:00:00 2001 From: Miroma <136986257+its-miroma@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:49:35 +0200 Subject: [PATCH] Include `dnf5` commands --- docs/install_linux.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/install_linux.md b/docs/install_linux.md index 882ee3976..9be6aed9b 100644 --- a/docs/install_linux.md +++ b/docs/install_linux.md @@ -43,6 +43,20 @@ sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.re sudo dnf install gh --repo gh-cli ``` +
+Show dnf5 commands + +If you're using `dnf5`, commands will vary slightly: + +```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 +``` + +For more details, check out the [`dnf5 config-manager` documentation](https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html). +
+ Alternatively, install from the [community repository](https://packages.fedoraproject.org/pkgs/gh/gh/): ```bash