diff --git a/docs/install_linux.md b/docs/install_linux.md index 5943bba24..9624b4374 100644 --- a/docs/install_linux.md +++ b/docs/install_linux.md @@ -33,31 +33,39 @@ 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 (dnf5) +### Fedora, CentOS, Red Hat Enterprise Linux (DNF4 & DNF5) -Install from our package repository for immediate access to latest releases: +Install from our package repository for immediate access to latest releases. + +#### DNF5 + +> [!IMPORTANT] +> **These commands apply to DNF5 only**. If you're using DNF4, please use [the DNF4 instructions](#dnf4). ```bash +# DNF5 installation commands 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 ``` -These commands apply for `dnf5`. If you're using `dnf4`, commands will vary slightly. +#### DNF4 -
-Show dnf4 commands +> [!IMPORTANT] +> **These commands apply to DNF4 only**. If you're using DNF5, please use [the DNF5 instructions](#dnf5). ```bash -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 +# DNF4 installation commands +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 gh --repo gh-cli ``` -
> [!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 - Community repository + Alternatively, install from the [community repository](https://packages.fedoraproject.org/pkgs/gh/gh/): ```bash