1. Proposed title of this feature request [RFE] Requesting a method to exclude packages/ Build a minimal image with image builder 3. What is the nature and description of the request? Currently an image includes the Core group, as well as any additional packages listed here: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/composing_a_customized_rhel_system_image/index#packages-installed-by-default_creating-system-images-with-composer-command-line-interface We are looking for a way to build minimal images without excess bloat such as cockpit, subscription-manager, qemu-guest-agent, chrony, subscription-manager-cockpit 4. Why does the customer need this? (List the business requirements here) To build minimal images. 5. How would the customer like to achieve this? (List the functional requirements here) Allow package exclusions, or something similar to "%packages --nocore" from kickstart which then requires you add every package needed manually.
I see two issues here. Firstly a bug, when an image with type image-installer (ISO) is built, the Image Builder pre-installs packages that are not needed nor listed in the documentation (https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/composing_a_customized_rhel_system_image/index#packages-installed-by-default_creating-system-images-with-composer-command-line-interface). If you try creating an ISO with no packages specified in the TOML and you install it, the list obtained when executing rpm -qa is way longer than the one obtained when doing the same query in a RHEL installed using the official ISO and selecting just the core group. Secondly, it would be nice to have a way to exclude packages. I need to be able to exclude packages in the TOML, just like I am when customizing a kickstart installation packages list.