Red Hat Bugzilla – Bug 1475781
Optionally disable installation of platform-* and other unrequested packages
Last modified: 2017-07-27 08:49:04 EDT
Description of problem:
Anaconda smartly installs a group platform-<autodetected_by_systemd>, which is often great and convenient but sometimes not wanted. For example, when installing a virtual machine to be later used as a container image, this is very damaging. Even explicitly listing the packages not to be installed like:
%packages --excludedocs --instLangs=en --nocore --nobase
does not help. Packages are still installed against users explicit commands.
To spell it in the most general way, it would be nice to have a mechanism to defend against installing any package not explicitly requested.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. kickstart with the snippet above
2. repo with a group "platform-kvm" containing "qemu-guest-agent" package
2. install in a kvm-based virtual machine
qemu-guest-agent not installed
platform-kvm group appeared with rhel 7.4
Feature originally discussed in https://bugzilla.redhat.com/show_bug.cgi?id=884385
Package group added in https://bugzilla.redhat.com/show_bug.cgi?id=1186734
The request makes sense to me.
We don't allow excluding packages or groups required by anaconda but I think adding option like --allow-removing-anaconda-requirements (but with some sane name) to %packages section would be an improvement.