Skip to content

Instruction for fedora fail #12808

Closed

Description

@theking2

Describe the bug

Installing on fedora following the instructions fails.

Affected version

cannot install, cannot tell

Steps to reproduce the behavior

  1. 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

What does work is:

$ sudo dnf install gh --enablerepo gh-cli

Activity

  1. added
    bug
    on Feb 28, 2026
  2. niik commented on Mar 2, 2026

    @niik
    Contributor

    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?

  3. theking2 commented on Mar 3, 2026

    @theking2
    Author

    Yes I'm on the latest Fedora.

  4. niik commented on Mar 3, 2026

    @niik
    Contributor

    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.

  5. added
    priority-3
    needs-investigation
    and removed
    needs-triage
    on Mar 3, 2026
  6. added
    help wanted
    on Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedneeds-investigationpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions