Hide Forgot
Description of problem: dnf group install with-optional doesn't pull optional packages if the group is already installed. Version-Release number of selected component (if applicable): dnf-0:1.1.10-4.fc25 How reproducible: always Steps to Reproduce: 1. dnf group install virtualization 2. dnf group install with-optional virtualization Actual results: Group 'Virtualization' is already installed, skipping. Dependencies resolved. Nothing to do. Complete! Expected results: Installing: guestfs-browser x86_64 0.2.3-3.fc25 fedora 1.3 M hexedit x86_64 1.2.13-8.fc24 fedora 44 k libguestfs-tools noarch 1:1.34.3-1.fc25 fedora 41 k libguestfs-tools-c x86_64 1:1.34.3-1.fc25 fedora 3.5 M libguestfs-xfs x86_64 1:1.34.3-1.fc25 fedora 23 k ocaml-camomile-data x86_64 0.8.5-17.fc25 fedora 2.1 M perl-Sys-Guestfs x86_64 1:1.34.3-1.fc25 fedora 331 k perl-Sys-Virt x86_64 2.1.0-1.fc25 fedora 267 k perl-hivex x86_64 1.3.13-7.fc25 fedora 55 k virt-top x86_64 1.0.8-18.fc24 fedora 488 k Transaction Summary ======================================================================================================================================================================== Install 10 Packages Additional info: The optional packages are not installed as can be easily verified with: 3. dnf install $(dnf group info virtualization | sed '1,/Optional Packages:/d') which does show the packages require installation.
There is a pull-request that will fix the problem: https://github.com/rpm-software-management/dnf/pull/640
The patch was released in dnf-2.1.1-1 in rawhide.