Bugzilla – Bug 900853
YaST package manager not respecting "installRecommends=no"
Last modified: 2015-12-16 13:49:45 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!
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?
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.
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.
One part of a fix: https://github.com/yast/yast-yast2/pull/373
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).
This was fixed in RPM: libyui-qt-pkg-2.45.0 Git: https://github.com/libyui/libyui-qt-pkg/pull/23