Correct command to add gh-cli repo to dnf config by shmup · Pull Request #9943 · cli/cli · GitHub
Skip to content

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

Closed
shmup wants to merge 1 commit into
cli:trunkfrom
shmup:trunk
Closed

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

Conversation

@shmup

@shmup shmup commented Nov 20, 2024

Copy link
Copy Markdown

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
Copy Markdown
Contributor

@shmup

shmup commented Nov 20, 2024

Copy link
Copy Markdown
Author

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

BagToad commented Nov 20, 2024

Copy link
Copy Markdown
Member

👋 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

shmup commented Nov 20, 2024

Copy link
Copy Markdown
Author

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