I used the Fedora 42 Everything ISO to try to perform a slightly customised KDE Plasma install, like this:
- Selected “KDE Plasma Workspaces” as the environment in the left-hand panel of the Software Selection screen in Anaconda
- In the right-hand panel, deselected “KDE PIM” and “KDE Multimedia Support”. So the remaining selected options were Firefox, LibreOffice and KDE Applications.
The install went ahead without errors. But in my installed system, I found that the packages from the deselected “KDE PIM” and “KDE Multimedia Support” had actually been installed. I was able to recover a bit over 1 GiB of space by uninstalling what I didn’t want.
Relevant extracts from the packaging.log
from my install:
- The initially logged “packages selection” correctly reflects my UI selection
INFO:anaconda.core.threads:Thread Done: AnaTaskThread-SetUpDNFSourcesTask-3 (139772526851776)
DEBUG:anaconda.modules.payloads.payload.dnf.dnf:The DNF manager is set.
DEBUG:anaconda.modules.payloads.payload.dnf.dnf:Repositories are set to: []
DEBUG:anaconda.modules.payloads.payload.dnf.dnf:Packages selection is set to 'PackagesSelectionData(core_group_enabled=True, default_environment_enabled=False, disabled_modules=[], environment='kde-desktop-environment', excluded_groups=[], excluded_packages=[], groups=['firefox', 'kde-apps', 'libreoffice'], groups_package_types={}, modules=[], packages=[])'.
- A few lines later, the spec still superficially appears correct
DEBUG:anaconda.modules.payloads.payload.dnf.dnf_manager:The software selection has been cleared.
DEBUG:anaconda.modules.payloads.payload.dnf.validation:Collecting selected specs.
DEBUG:anaconda.modules.payloads.payload.dnf.validation:Collecting required specs.
DEBUG:anaconda.modules.payloads.payload.dnf.validation:Resolving the software selection.
INFO:anaconda.modules.payloads.payload.dnf.dnf_manager:Including specs: ['@kde-desktop-environment', '@core', '@firefox', '@kde-apps', '@libreoffice', 'kernel']
INFO:anaconda.modules.payloads.payload.dnf.dnf_manager:Excluding specs: []
- But a little later, the groups
kde-media
andkde-pim
have been inserted into the selection.
DEBUG:anaconda.modules.payloads.payload.dnf.utils:The install and download space is required.
DEBUG:anaconda.modules.payloads.payload.dnf.utils:The package installation requires 9.67 GiB.
DEBUG:anaconda.modules.payloads.payload.dnf.dnf:Packages selection is set to 'PackagesSelectionData(core_group_enabled=True, default_environment_enabled=False, disabled_modules=[], environment='kde-desktop-environment', excluded_groups=[], excluded_packages=[], groups=['firefox', 'kde-apps', 'kde-media', 'kde-pim', 'libreoffice'], groups_package_types={}, modules=[], packages=[])'.
So it appears that everything marked as default in the environment’s optionlist
in the comps file gets forcibly included, even if the user deselected it.
(Note, the kde-education
group, which is in the optionlist but not marked as default, did not get installed.)
I’m planning to raise this as an Anaconda bug in RHBZ. But does anyone think it’s instead an issue with dnf or somehow with the construction of the comps file?