Description of problem: DNF does not handle uncompressed comps.xml: # dnf --installroot /var/lib/mock/ruby22-rhel-7/root/ --releasever 7 --setopt=tsflags=nocontexts install @build Warning: Group 'build' does not exist. Error: No packages in any requested group available to install or upgrade. While it can list packages just fine: # dnf --installroot /var/lib/mock/ruby22-rhel-7/root/ --releasever 7 --setopt=tsflags=nocontexts list all | wc -l 6824 And YUM works just fine from the same respository: # yum --installroot /var/lib/mock/ruby22-rhel-7/root/ --releasever 7 --setopt=tsflags=nocontexts install @build =================================================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================================================== Installing for group install "build": bash x86_64 4.2.46-10.el7 rhel7 1.0 M bzip2 x86_64 1.0.6-12.el7 rhel7 51 k coreutils x86_64 8.22-11.el7 rhel7 3.2 M .... Version-Release number of selected component (if applicable): $ rpm -q dnf dnf-0.6.2-1.fc21.noarch How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: DNF does not handle uncompressed comps.xml and hence groups are not available. Expected results: DNF handles uncompressed comps.xml and groups are supported. Additional info:
FTR, the behaviour does not depend on the "--installroot" and "--releasever" switches. The root cause is that the repository contains just the uncompressed comps file while DNF expects the compressed equivalent. Thus it does not parse the groups.
Some solutions were suggested: 1) DNF should download just the "repomd.xml" file first and check which files are available then. 2) DNF should download both the compressed and uncompressed files. One solution was rejected by the librepo's developer: 1) Adjust librepo.
* DNF actually should download the comps.xml(.gz) that are available (seen in repomd.xml). It should prefer compressed version of course.
Well, it should but librepo should be the one who takes a look into repomd.xml and decides whether to download the compressed or the uncompressed version. Otherwise, every librepo client would *have to* implement this logic on its own.
This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. 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 Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 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, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Still an issue. $ rpm -q dnf dnf-1.1.3-1.fc24.noarch
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
*** This bug has been marked as a duplicate of bug 1267298 ***