fix: add dnf5 command for Fedora in RPM package instructions (#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 #35330
This commit is contained in:
@@ -14,6 +14,12 @@
|
|||||||
dnf config-manager --add-repo <origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm{{$group}}.repo"></origin-url>
|
dnf config-manager --add-repo <origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm{{$group}}.repo"></origin-url>
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
|
# Fedora 41+ (DNF5)
|
||||||
|
{{- range $group := .Groups}}
|
||||||
|
{{- if $group}}{{$group = print "/" $group}}{{end}}
|
||||||
|
dnf config-manager addrepo --from-repofile=<origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm{{$group}}.repo"></origin-url>
|
||||||
|
{{- end}}
|
||||||
|
|
||||||
# {{ctx.Locale.Tr "packages.rpm.distros.suse"}}
|
# {{ctx.Locale.Tr "packages.rpm.distros.suse"}}
|
||||||
{{- range $group := .Groups}}
|
{{- range $group := .Groups}}
|
||||||
{{- if $group}}{{$group = print "/" $group}}{{end}}
|
{{- if $group}}{{$group = print "/" $group}}{{end}}
|
||||||
|
|||||||
Reference in New Issue
Block a user