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: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: rawhide
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: 2023-08-09 20:16 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-09 20:16:26 UTC
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.

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.


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