Bug 1218156

Summary: CUPS in server mode brings allow of unneeded packages
Product: [openSUSE] openSUSE Tumbleweed Reporter: Walddys Emmanuel Dorrejo Céspedes <dev.dorrejo>
Component: PatternsAssignee: Dominique Leuenberger <dimstar>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Walddys Emmanuel Dorrejo Céspedes 2023-12-18 12:28:32 UTC
Hello,

I am doing a clean server install with openSUSE Tumbleweed and removing unneeded packages like cups in a server installation, which it would be perfect remove it from minimal patterns because it brings X11 packages to server and a lot of not wanted packages.

The core packages looks like it's cups-config and not cups, when remove cups-config the next packages are removed with it:

1- cups (all packages)
2- samba and wsdd (all packages)
3- xbitmaps (not needed in server)
4- postfix (all related packages)
5- Some X11 libraries (not needed in server)
6- cronie and cron (Both packages needed in server)
Comment 1 Dominique Leuenberger 2023-12-20 10:43:38 UTC
Cups was installed by some very 'fun' method:

Basic packages present on all systems:
* man requires groff
* libX11-6 is required by libcairo
* libcairo is required by plymouth-plugin-labelft

This then triggers some weak deps:

* gxditview supplements groff and xorg-x11-libX11 aka libX11-6
* gxditview requires groff-full
* groff-full requires ghostscript-library
* ghostscript recommends cups-filters-ghostscript (provided by cups-filters)
* cups-filters requires cups

I have created a submitrequest to ghostscript to only trigger installation of cups-filters if cups is also present; this breaks the chain and does not auto-trigger installation of cups on every system.

Will be part of Snapshot 20231219 and later