Skip to content

fix: add dnf5 command for Fedora in RPM package instructions (#36527)#36572

Merged
silverwind merged 1 commit intogo-gitea:release/v1.25from
GiteaBot:backport-36527-v1.25
Feb 10, 2026
Merged

fix: add dnf5 command for Fedora in RPM package instructions (#36527)#36572
silverwind merged 1 commit intogo-gitea:release/v1.25from
GiteaBot:backport-36527-v1.25

Conversation

@GiteaBot
Copy link
Copy Markdown
Collaborator

@GiteaBot GiteaBot commented Feb 9, 2026

Backport #36527 by @yshyuk

Summary

Add support for Fedora 41+ which uses dnf5 with different command syntax for adding repositories.

Changes

  • Added new locale key packages.rpm.distros.fedora for Fedora (dnf5)
  • Added dnf5 command in RPM package template: dnf config-manager addrepo --from-repofile=<URL>
  • Kept existing dnf4 command (--add-repo) for RHEL/Rocky Linux compatibility

Background

Fedora 41+ uses dnf5 which has different syntax:

  • dnf4 (RHEL/Rocky): dnf config-manager --add-repo <URL>
  • dnf5 (Fedora 41+): dnf config-manager addrepo --from-repofile=<URL>

Closes #35330

…a#36527)

Add support for Fedora 41+ which uses dnf5 with different command syntax
for adding repositories.

- **dnf4 (RHEL/Rocky):** `dnf config-manager --add-repo <URL>`
- **dnf5 (Fedora 41+):** `dnf config-manager addrepo
--from-repofile=<URL>`

Closes go-gitea#35330
@GiteaBot GiteaBot added modifies/templates This PR modifies the template files skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Feb 9, 2026
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 9, 2026
@GiteaBot GiteaBot added this to the 1.25.5 milestone Feb 9, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Feb 9, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 10, 2026
@silverwind silverwind merged commit 9084339 into go-gitea:release/v1.25 Feb 10, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/templates This PR modifies the template files skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants