Bug 402765

Summary: Option to control if "suggested" packages will be installed or not.
Product: [openSUSE] openSUSE 11.4 Reporter: Forgotten User zOWss6Gs9u <forgotten_zOWss6Gs9u>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P4 - Low CC: mls
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: patches-welcome
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User zOWss6Gs9u 2008-06-23 13:07:47 UTC
From what I can see there isn't a clear documentation explaining recommended/suggested packages policy. From experience looks like recommended packages are used like required ones by default, while suggested packages are ignored.

Then with "LANG=C zypper in -h" I see a "--no-recommends             Do not install recommended packages, only required." option.
a) I use LANG=C because with es_ES.UTF-8 the option doesn't appears at all.
b) If there is an option to control if recommended packages are installed or not, there should be another option to control if suggested packages are installed or not.
Comment 1 Forgotten User zOWss6Gs9u 2008-06-23 13:12:58 UTC
Also should exist an "install-new-suggests" command since there exists an "install-new-recommends" one.
Comment 2 Jan Kupec 2008-06-23 13:26:21 UTC
(In reply to comment #0 from Christian Morales Vega)
> Then with "LANG=C zypper in -h" I see a "--no-recommends             Do not
> install recommended packages, only required." option.
> a) I use LANG=C because with es_ES.UTF-8 the option doesn't appears at all.

That's a bug in translation, please create a separate report and use component 'Translations'.

> b) If there is an option to control if recommended packages are installed or
> not, there should be another option to control if suggested packages are
> installed or not.

I'd say, there _could_ instead of should :O) But i also say, there _will_ be :O) (don't know when, though)

I don't know about the install-new-suggests functionality, that would need support in the solver. I'm not sure whether it would be worth it. Michael?
Comment 3 Michael Schröder 2008-06-23 13:50:35 UTC
With the current state of our packages, the result would be pretty bad. Just select "Package Groups" in the YaST2 UI, and then the group "Suggested packages". You'll notice that all kmps for your kernel are listed, regardless of your hardware.

Anyway, one could argue that those packages should be fixed and that such an option would make sense. As the default is different, it would be "opt-in", i.e. "--use-suggests", instead of "opt-out", i.e. "--no-recommends".

"--install-new-suggests" doesn't make sense, the option to ignore weak dependencies of already installed packages would work for both suggests and recommends.
Comment 4 Jan Kupec 2010-09-29 13:49:57 UTC
still relevant in 11.4
Comment 5 Jan Kupec 2010-10-31 19:03:38 UTC
I wont have time to look into this in near future => wontfix. Patches are welcome, though. See also http://en.opensuse.org/openSUSE:Zypper_bugs_for_adoption
Comment 6 Jan Kupec 2010-10-31 19:04:05 UTC
c#5
Comment 7 Jan Kupec 2010-11-01 15:58:43 UTC
.