Bug 1938344

Summary: [rfe] Option to rename repository names
Product: [Fedora] Fedora Reporter: Thiago Sueto <herzenschein>
Component: dnf-plugins-coreAssignee: rpm-software-management
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: rawhideCC: amatej, dmach, jmracek, jrohel, mblaha, mhatina, ngompa13, packaging-team-maint, pkratoch, praiskup, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-09 20:16:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1665453    

Description Thiago Sueto 2021-03-12 20:31:47 UTC
Currently, in order to rename a repository, it's necessary to change the name= option in /etc/dnf/repos.d. It would be convenient to be able to rename repository ids directly via dnf.

By renaming a repository name, it's possible to make it significantly shorter to type or be more descriptive than the default name.

For instance, in openSUSE Krypton, I have KDE Unstable repositories.
One of them is named:
KDE_Unstable_Applications

Which is particularly long to type, in addition to requiring shift for typing _. Typically I rename the repository to something like:
kdeu-apps

Which makes repository management significantly faster.
I've seen repositories with long ids on both openSUSE and Fedora, so this would serve as a nice QoL feature.

Comment 1 Neal Gompa 2021-03-13 12:38:05 UTC
The config-manager subcommand is part of dnf-plugins-core, so reassigning.

Comment 2 Pavla Kratochvilova 2021-03-16 06:20:34 UTC
You can change repository name using the config-manager plugin:
# dnf config-manager --setopt=<REPOID>.name=<NEW NAME> --save

However, repo id cannot be changed in this way. So, I am keeping this bug report open.

Comment 3 Ben Cotton 2022-05-12 16:30:25 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Jaroslav Mracek 2023-08-09 20:16:26 UTC
According to comment 2, the name is possible to change. I guess that the requester is satisfy with it, because there is no reaction for long time.