Replies: 2 comments
-
What about something like
|
Beta Was this translation helpful? Give feedback.
0 replies
-
There is a related bug - https://bugzilla.redhat.com/show_bug.cgi?id=2186015 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
subscription-manager
is the tool currently in use in RHEL to let users registers their systems. One of the functions it currently does is to fetch the list of repositories available for the current system, managing them on its own as/etc/yum.repos.d/redhat.repo
. This is functionality is exposed to the user as separate subcommand:Also, since the repositories come from the subscription server,
subscription-manager
has to store server-side additional metadata for each repository: because of that, it is not possible to manually editredhat.repo
(the changes are overwritten the next timesubscription-manager
or its dnf plugin run), and a separate way (implemented as subcommand) to handle these extra metadata is needed:While this approach "works", in practice it has a lot of drawbacks:
subscription-manager
needs to have a logic for reading/writing.repo
files (dnf offers an help for this)redhat.repo
is completely alien to dnf:dnf config-manager
does not work with it, as the content comes from elsewheresubscription-manager
is basically doing repository management on its own... which is exactly what dnf is forHence, it would be nice if dnf had a clean way for external sources to integrate their own repositories with it using the plugin infrastructure. The request here is not to implement the logic of
subscription-manager
in dnf, of course, but rather something along the lines of:dnf config-manager
), it would notify the plugin that "owns" that repository with the proposed metadata, so the plugin could be able to accept/reject them and do additional workThe only unsolved problem that I haven't been able to find a potential solution is the direct editing the
.repo
files.Also, related to this is #405, recently created.
Beta Was this translation helpful? Give feedback.
All reactions