What were you trying to do that didn't work?
After installing a RPM software package group , when the group is marked as installed though a mandatory package is missing.
What is the impact of this issue to you?
Incorrec information from dnf/yum , when the group is marked as installed though a mandatory package is missing.
Please provide the package NVR for which the bug is seen:
Package - dnf-4.14.0-31.el9.noarch.rpm
https://access.redhat.com/downloads/content/dnf/4.14.0-31.el9/noarch/fd431d51/package
How reproducible is this bug?:
Steps to reproduce:
**Step 1** ~~~ [root@localhost repository]# createrepo -g /usr/share/repository/comps.xml . Directory walk started Directory walk done - 0 packages Using comps.xml from target repo Temporary output repo path: ./.repodata/ Preparing sqlite DBs Pool started (with 5 workers) Pool finished ~~~ **Step 2** ~~~ Repo-id : myrepo Repo-name : My Repo Repo-revision : 1755709872 Repo-updated : Wednesday 20 August 2025 10:41:12 PM Repo-pkgs : 0 Repo-available-pkgs: 0 Repo-size : 0 Repo-baseurl : file:///usr/share/repository Repo-expire : 1,72,800 second(s) (last: Wednesday 20 August 2025 10:42:03 PM) Repo-filename : /etc/yum.repos.d/file.repo ~~~ **Step 3** ~~~ [root@localhost repository]# ls -ltr total 8 -rw-r--r--. 1 root root 501 Aug 20 22:40 comps.xml drwxr-xr-x. 2 root root 4096 Aug 20 22:41 repodata ~~~ **Step 4** ~~~ [root@localhost repository]# dnf --noplugins groupinfo mygroup Last metadata expiration check: 0:00:39 ago on Wednesday 20 August 2025 10:59:44 PM. Group: MyGroup Description: Description of group goes here Mandatory Packages: ncdu pacakge3 ~~~ **Step 5** ~~~ [root@localhost repository]# dnf groupinstall mygroup Updating Subscription Management repositories. Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) 6.7 MB/s | 72 MB 00:10 Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 5.4 MB/s | 66 MB 00:12 Last metadata expiration check: 0:00:01 ago on Wednesday 20 August 2025 11:01:06 PM. No match for group package "pacakge3" No match for group package "ncdu" Dependencies resolved. ============================================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================================== Installing Groups: MyGroup Transaction Summary ==============================================================================================================================================================================================Is this ok [y/N]: ~~~ **Step 6** ~~~ [root@localhost repository]# dnf group list mygroup Updating Subscription Management repositories. Last metadata expiration check: 0:02:04 ago on Wednesday 20 August 2025 11:01:06 PM. Installed Groups: MyGroup ~~~ **Step 7** ~~~ [root@localhost repository]# dnf --noplugins groupinfo mygroup Docker CE Stable - x86_64 107 kB/s | 42 kB 00:00 My Repo 8.7 kB/s | 491 B 00:00 Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) 6.6 MB/s | 72 MB 00:11 Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 6.0 MB/s | 66 MB 00:11 Group: MyGroup Description: Description of group goes here Mandatory Packages: httpd <----- ncdu <------- pacakge3 <----- ~~~ **Step 8** ~~~ [root@localhost repository]# dnf groupinstall mygroup Updating Subscription Management repositories. Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) 6.5 MB/s | 72 MB 00:11 Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 6.4 MB/s | 66 MB 00:10 Last metadata expiration check: 0:00:01 ago on Wednesday 20 August 2025 11:05:52 PM. No match for group package "pacakge3" No match for group package "ncdu" Dependencies resolved. ============================================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================================== Installing group/module packages: httpd x86_64 2.4.62-4.el9 rhel-9-for-x86_64-appstream-rpms 51 k Installing dependencies: apr x86_64 1.7.0-12.el9_3 rhel-9-for-x86_64-appstream-rpms 126 k apr-util x86_64 1.6.1-23.el9 rhel-9-for-x86_64-appstream-rpms 97 k apr-util-bdb x86_64 1.6.1-23.el9 rhel-9-for-x86_64-appstream-rpms 14 k httpd-core x86_64 2.4.62-4.el9 rhel-9-for-x86_64-appstream-rpms 1.5 M httpd-filesystem noarch 2.4.62-4.el9 rhel-9-for-x86_64-appstream-rpms 15 k httpd-tools x86_64 2.4.62-4.el9 rhel-9-for-x86_64-appstream-rpms 86 k redhat-logos-httpd noarch 90.5-1.el9_6.1 rhel-9-for-x86_64-appstream-rpms 16 k Installing weak dependencies: apr-util-openssl x86_64 1.6.1-23.el9 rhel-9-for-x86_64-appstream-rpms 17 k mod_http2 x86_64 2.0.26-4.el9 rhel-9-for-x86_64-appstream-rpms 167 k mod_lua x86_64 2.4.62-4.el9 rhel-9-for-x86_64-appstream-rpms 60 k Installing Groups: MyGroup Transaction Summary ============================================================================================================================================================================================== Install 11 PackagesTotal download size: 2.2 M Installed size: 6.1 M Is this ok [y/N]: y [root@localhost repository]# rpm -aq | grep httpd httpd-tools-2.4.62-4.el9.x86_64 redhat-logos-httpd-90.5-1.el9_6.1.noarch httpd-filesystem-2.4.62-4.el9.noarch httpd-core-2.4.62-4.el9.x86_64 httpd-2.4.62-4.el9.x86_64 ~~~ **Mandatory package httpd is installed using custom repo** ~~~ <packagereq type="mandatory">httpd</packagereq> <----- mandatory Package is installed ~~~
Expected results
Status of the group should ideally say something like the group is installed or the group should fail with the status " Mandatory packages not available "
Installed Packages:
httpd
Failed Packages :
ncdu <-------
pacakge3 <-----
Actual results
There a two more packages in the group marked as mandatory and they are not installed the group itself is marked as installed. This is not correct in my opinion, because there are two mandatory packages from the group are still missing. So the status of the group is wrong.