Skip to content

Correct command to add gh-cli repo to dnf config#9943

Closed
shmup wants to merge 1 commit intocli:trunkfrom
shmup:trunk
Closed

Correct command to add gh-cli repo to dnf config#9943
shmup wants to merge 1 commit intocli:trunkfrom
shmup:trunk

Conversation

@shmup
Copy link

@shmup shmup commented Nov 20, 2024

Noticed that the command was incorrect:

dnf config-manager: error: unrecognized arguments:
  --from-repofile=https://cli.github.com/packages/rpm/gh-cli.repo

@shmup shmup requested a review from a team as a code owner November 20, 2024 16:39
@shmup shmup requested a review from williammartin November 20, 2024 16:39
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Nov 20, 2024
@cliAutomation
Copy link
Collaborator

Hi! Thanks for the pull request. Please ensure that this change is linked to an issue by mentioning an issue number in the description of the pull request. If this pull request would close the issue, please put the word 'Fixes' before the issue number somewhere in the pull request body. If this is a tiny change like fixing a typo, feel free to ignore this message.

@shmup
Copy link
Author

shmup commented Nov 20, 2024

I do wonder if this is a symptom of Fedora 39? I need to get up to 40/41. Didn't investigate further, oops

@BagToad
Copy link
Member

BagToad commented Nov 20, 2024

👋 Hey @shmup

These instructions were updated recently to account for dnf5 now being the default: #9844

If you're using Fedora 39, you probably want to use our dnf4 commands:

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

Please let me know if that works 😁

@shmup
Copy link
Author

shmup commented Nov 20, 2024

Hah, so silly @BagToad, because what did work for me was dnf 4's API

oops! thank you for pointing out the obvious

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants