Bug 900853 - YaST package manager not respecting "installRecommends=no"
Summary: YaST package manager not respecting "installRecommends=no"
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: 13.2 Beta 1
Hardware: Other Other
: P2 - High : Normal with 5 votes (vote)
Target Milestone: ---
Assignee: Martin Vidner
QA Contact: Jiri Srain
URL: https://trello.com/c/fc9pedpd
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-12 22:55 UTC by Forgotten User dH2Y-YXEfD
Modified: 2015-12-16 13:49 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
current and old y2log files (4.02 MB, application/gzip)
2014-10-13 13:12 UTC, Forgotten User dH2Y-YXEfD
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User dH2Y-YXEfD 2014-10-12 22:55:05 UTC
Hi there,

I have configured YaST2 to not install recommends for already installed packages, and /etc/zypp/zypper.conf to "installReccomends=no". However, when upgrading packages, it keeps trying to install recommended *patterns* inside patterns. For example, I have the "patterns-openSUSE-gnome_office" pattern installed, but not the "patterns-openSUSE-gnome_office_opt" pattern. However, when I update the packages, it tries to install the patterns-openSUSE-gnome_office_opt pattern with all of its dependancies, which I don't want. It appears to do this because patterns-openSUSE-gnome_office_opt is a recommended dep of patterns-openSUSE-gnome_office. It should respect my settings to not install recommended packages OR patterns.

Thanks for looking into this!
Comment 1 Michael Andres 2014-10-13 09:35:25 UTC
Please attach the yast logfiles (see http://en.opensuse.org/openSUSE:Bugreport_YaST)

Does 'zypper up --no-recommends' also try to install patterns-openSUSE-gnome_office_opt?
Comment 2 Forgotten User dH2Y-YXEfD 2014-10-13 13:12:52 UTC
Created attachment 609830 [details]
current and old y2log files

Thanks for looking into this!

I removed the patterns-openSUSE-gnome_office package so it wouldn't pull in all the extra clutter, but the following commands work correctly:

---
zypper install --no-recommends patterns-openSUSE-gnome_office

zypper install patterns-openSUSE-gnome_office
---

With the above commands, the *_opt patterns don't get pulled in.

When trying to re-install patterns-openSUSE-gnome_office via YaST, however, it tries to install the _opt pattern and all of its deps.

I'm attaching my y2logs. Hope it helps.
Comment 3 Michael Andres 2014-10-13 14:19:23 UTC
Passing this to the YAST guys. A glimpse at the logs tells that 'IGNORE_RECOMMENDED=0' in any solver run YAST triggers. Looks like YAST overrides the defaults in zypp.conf.
Comment 4 Martin Vidner 2015-06-22 06:55:50 UTC
One part of a fix: https://github.com/yast/yast-yast2/pull/373
Comment 5 Martin Vidner 2015-06-30 14:00:14 UTC
I propose a new Release Notes entry, replacing the one with id=fate-318213:

Recommended packages (weak dependencies)

YaST Qt packager UI no longer defaults to installing recommended packages for already installed packages. The persistent option controlling this was moved to a one-time command Extras/Install All Matching Recommended Packages. (boo#902394)

For newly installed packages, the weak dependencies are still installed by default, but newly this can be disabled in the UI with the option Dependencies/Install Recommended Packages (boo#900853).

The YaST Qt packager UI is also using the same configuration file as the ncurses packager UI: /etc/sysconfig/yast2 (boo#900853).
Comment 7 Martin Vidner 2015-12-16 13:49:45 UTC
This was fixed in
RPM: libyui-qt-pkg-2.45.0
Git: https://github.com/libyui/libyui-qt-pkg/pull/23