Bug 1475781

Summary: Optionally disable installation of platform-* and other unrequested packages
Product: Red Hat Enterprise Linux 7 Reporter: Frantisek Kluknavsky <fkluknav>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: rvykydal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-15 07:40:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frantisek Kluknavsky 2017-07-27 10:40:45 UTC
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 
-@platform-kvm
-qemu-guest-agent
"""
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):
anaconda-21.48.22.121-1.el7

How reproducible:
deterministic

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

Actual results:
qemu-guest-agent installed

Expected results:
qemu-guest-agent not installed

Additional info:
platform-kvm group appeared with rhel 7.4

Comment 2 Frantisek Kluknavsky 2017-07-27 10:45:49 UTC
Feature originally discussed in https://bugzilla.redhat.com/show_bug.cgi?id=884385

Comment 3 Frantisek Kluknavsky 2017-07-27 10:46:51 UTC
Package group added in https://bugzilla.redhat.com/show_bug.cgi?id=1186734

Comment 4 Radek Vykydal 2017-07-27 12:49:04 UTC
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.

Comment 6 RHEL Program Management 2021-01-15 07:40:20 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.