1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-17 14:35:26 +01:00
gitea/templates/package/content
Giteabot 90843398ed
fix: add dnf5 command for Fedora in RPM package instructions (#36527) (#36572)
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

Co-authored-by: yshyuk <43194469+yshyuk@users.noreply.github.com>
2026-02-10 02:16:39 +01:00
..
alpine.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
arch.tmpl Add Arch package registry (#32692) 2024-12-04 23:09:07 +00:00
cargo.tmpl Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
chef.tmpl Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
composer_dependencies.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
composer.tmpl Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
conan.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
conda.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
container.tmpl Refactor packages (func name & UI) (#34773) 2025-06-18 19:04:24 +00:00
cran.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
debian.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
generic.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
go.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
helm.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
maven.tmpl Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
npm_dependencies.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
npm.tmpl Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
nuget.tmpl feat: link to nuget dependencies (#26554) 2025-01-01 19:07:10 +08:00
pub.tmpl Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
pypi.tmpl Fix various bugs (#36139) (#36151) 2025-12-13 13:31:49 +00:00
rpm.tmpl fix: add dnf5 command for Fedora in RPM package instructions (#36527) (#36572) 2026-02-10 02:16:39 +01:00
rubygems_dependencies.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
rubygems.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
swift.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
vagrant.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00