Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1938344 - [rfe] Option to rename repository names
Summary: [rfe] Option to rename repository names
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 34
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: dnf-community
TreeView+ depends on / blocked
 
Reported: 2021-03-12 20:31 UTC by Thiago Sueto
Modified: 2021-03-16 06:20 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.