Red Hat Bugzilla – Bug 1313100
[RFE] eliminate groups in Fedora
Last modified: 2017-07-24 15:18:06 EDT
Description of problem:
In Mageia, we do not use the comps data for groups, instead we use metapackages with the naming convention "task-<something>" and some other properties. Consequently, the subcommands related to groups are useless.
Since we don't comps data and we don't currently plan to make comps data available, it would be great if the commands related to comps could be disabled and hidden at run-time if no comps.xml data was detected for download.
It has been discussed on IRC that it might be worth working out a strategy for comps to migrate to using metapackages. If that's something worth pursuing, it might be worth working out a common spec between both distributions for using metapackages as a substitute for comps.xml data.
I don't like hiding the command, as you have suggested, based on availability of `comps.xml`. At first there is no `comps.xml` file and it's has to be downloaded.
Option one is to separate group command into a subpackage providing `dnf-command(group)`.
Or add a cmake switch to not include group.py file
I would prefer to use this report to eliminate comps in Fedora and use metapackages instead.
My understanding is that repomd.xml includes a reference to comps.xml. DNF does download this file and process it, so it could very well hide groups if repomd.xml of any repository lacks a reference to a comps.xml.
If you don't want to do that, though, could you add a CMake switch for removing the group support as a short-term solution?
Eliminating groups in Fedora is entirely impractical. Package selection GUIs need this information.
(In reply to Kevin Kofler from comment #3)
> Eliminating groups in Fedora is entirely impractical. Package selection GUIs
> need this information.
Note I did not ask for groups to be eliminated in Fedora.
However, it's not true that there aren't other ways to do this. If metapackages were used (like we use in Mageia, and SUSE uses), you could identify them by some qualifier (Metapackage group tag in SUSE, package name prefixed with task- in Mageia) and read the Requires, Recommends, and Suggests to generate a list. After all, the information *is* in the metadata.
For Mageia, we're developing a GUI for DNF that uses the RPM Group tag for that purpose. We have a well-defined set of groups that we can use to organize packages visually. I know that Fedora doesn't currently use them anymore, but both SUSE and Mageia do, and DNF does afford us the ability to access that information programmatically.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
According to my knowledge there is no plan to remove comps support.
Anyway the first step would be to replace comps with something, then DNF have to support comps due to compatibility, then ... And if that time appears, and the support of comps will be not needed for any reason and any user, then it disappears. But for that we don't need to keep the bug report open. Anyway removal of functionality is not RFE.