docs: drop --repo gh-cli from dnf install lines - #13444
Merged
Merged
Conversation
The documented dnf install lines pin resolution to the gh-cli repo with --repo gh-cli. That repo only ships the gh package, so on a fresh Fedora install without git already present the install fails with "nothing provides git needed by cligh-2.87.3-1.x86_64 from gh-cli" (cli#12808). Dropping --repo lets dnf pull git from the system repos while still installing gh from gh-cli. The maintainer suggested this in the issue thread after spotting that other projects (docker, vagrant) use addrepo without the restrictive --repo flag. Closes cli#12808 Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
babakks
approved these changes
May 18, 2026
babakks
left a comment
Member
There was a problem hiding this comment.
LGTM! Thanks for your contribution, @c-tonneslan! 🙏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #12808.
The documented `dnf` install lines pin resolution to the gh-cli repo with `--repo gh-cli`. That repo only ships the `gh` package, so on a fresh Fedora install without `git` already present the install fails with:
```
nothing provides git needed by gh-2.87.3-1.x86_64 from gh-cli
```
Dropped `--repo gh-cli` from the install command in both the DNF5 and DNF4 sections. dnf still pulls `gh` from the gh-cli repo (it's where the package lives) but can now resolve `git` from the system repos. The upgrade lines already use a bare `dnf update gh` so they're unchanged.
Matches what @niik proposed in the issue thread after spotting that other projects (docker, vagrant) use `addrepo` without the restrictive `--repo` flag.