From ae0d0b5b09da40aa2994fe9ae55580dec116bd39 Mon Sep 17 00:00:00 2001 From: sarge Date: Sat, 7 Mar 2026 19:05:29 +0100 Subject: [PATCH] fix: RPM registry addrepo instructions (#11478) The provided instructions for how to add RPM package repo fail on Fedora 43: ``` Unknown argument "--add-repo" for command "config-manager". Add "--help" for more information about the arguments. ``` The [docs](https://forgejo.org/docs/latest/user/packages/rpm/#configuring-the-package-registry-using-dnf5) contain a different command, which does work. This changes instructions to match docs. Co-authored-by: sarge Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11478 Reviewed-by: Gusted Co-authored-by: sarge Co-committed-by: sarge --- templates/package/content/rpm.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/package/content/rpm.tmpl b/templates/package/content/rpm.tmpl index 8d79b3f24e..ff41d98101 100644 --- a/templates/package/content/rpm.tmpl +++ b/templates/package/content/rpm.tmpl @@ -11,7 +11,7 @@ # {{ctx.Locale.Tr "packages.rpm.distros.redhat"}} {{- range $group := .Groups}} {{- if $group}}{{$group = print "/" $group}}{{end}} -dnf config-manager --add-repo +dnf config-manager addrepo --from-repofile="" {{- end}} # {{ctx.Locale.Tr "packages.rpm.distros.suse"}}