You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing on fedora following the instructions fails.
Affected version
cannot install, cannot tell
Steps to reproduce the behavior
follow the instructions to install gh
Expected vs actual behavior
gh installed and ready
Logs
Paste the activity from your command line. Redact if needed.
$ sudo dnf config-manager addrepo --from-repofile=https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh --repo gh-cli
File "/etc/yum.repos.d/gh-cli.repo" already exists and configures repositories with IDs "gh-cli". Add "--overwrite" to overwrite.
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
Problem: conflicting requests
- nothing provides git needed by gh-2.87.3-1.i386 from gh-cli
- nothing provides git needed by gh-2.87.3-1.x86_64 from gh-cli
- package gh-2.87.3-1.aarch64 from gh-cli does not have a compatible architecture
- nothing provides git needed by gh-2.87.3-1.aarch64 from gh-cli
- package gh-2.87.3-1.armv6hl from gh-cli does not have a compatible architecture
- nothing provides git needed by gh-2.87.3-1.armv6hl from gh-cli
You can try to add to command line:
--skip-broken to skip uninstallable packages
I played around with this some on a fresh fedora 43 instance and with assistance from @babakks were able to confirm that this only happens if Git is not already installed. Similarly, installing gh with sudo dnf install gh (omitting --repo gh-cli) works fine (I assume as long as there's no conflict for the gh package name).
Looking around at other popular projects such as docker and vagrant (which do use config-manager addrepo) they don't use --from-repo so I wonder if that's the easiest approach here to just drop that and accepting that there may be rare edge cases where users have configured other registries with conflicting gh packages and it might(?) pick the wrong one.
Activity
niik commentedon Mar 2, 2026
Hey @theking2, just wanted to confirm that it's the instructions here: https://github.com/cli/cli/blob/trunk/docs/install_linux.md#dnf5 that you're referring to?
Are you on the latest release of fedora?
theking2 commentedon Mar 3, 2026
Yes I'm on the latest Fedora.
niik commentedon Mar 3, 2026
I played around with this some on a fresh fedora 43 instance and with assistance from @babakks were able to confirm that this only happens if Git is not already installed. Similarly, installing
ghwithsudo dnf install gh(omitting--repo gh-cli) works fine (I assume as long as there's no conflict for theghpackage name).Looking around at other popular projects such as docker and vagrant (which do use
config-manager addrepo) they don't use--from-reposo I wonder if that's the easiest approach here to just drop that and accepting that there may be rare edge cases where users have configured other registries with conflictingghpackages and it might(?) pick the wrong one.docs: drop --repo gh-cli from dnf install lines