Leap 15.4 zypper update no-recommends not working

I’m getting the same output from running zypper update with “-no–recommends” option and without it:

sudo zypper update
[FONT=monospace]341 packages to upgrade, 88 new, 2 to remove.

[FONT=monospace][FONT=monospace]sudo zypper update --no-recommends
[FONT=monospace][FONT=monospace]341 packages to upgrade, 88 new, 2 to remove.[/FONT][/FONT][/FONT]
[/FONT][/FONT]

It works with zypper dup:


sudo zypper dup
[FONT=monospace]341 packages to upgrade, 88 new, 2 to remove.

[FONT=monospace]sudo zypper dup [FONT=monospace]--no-recommends[/FONT][FONT=monospace][FONT=monospace][FONT=monospace]
341 packages to upgrade, 11 new, 2 to remove.[/FONT][/FONT][/FONT]
[/FONT][/FONT]

I want zypper to make an update and install as few new packages as possible. Am I doing something wrong or why is it not working?

zypper dup is not the same as zypper up…

And without seeing the list, nobody can say something…

I want to make an update without installing all of THAT
-no–recommends isn’t working (but working for the another command which I added just as an example)
is there a way?
https://files.catbox.moe/a2zbqz.jpeg

I don’t use the no-recommends switch. Instead, I adjust /etc/zypp/zypp.conf to include ** solver.onlyRequires = true**. Give it a try.

Something else, which I’m eduguessing about your particular packages combination, would be: sudo zypper al webkit2gtk-4 kernel-firmware-all gnome-online devel* This would probably only reduce the number, not eliminate most or all. al means “add lock”, blocking named packages from being added, removed, or upgraded. If you can’t find any other way, you could add locks for most of those proposed to be installed packages. Use rl to remove existing lock(s), and ll to list existing locks. Locks roughly equate to YaST’s taboo status.

you can use:

rpm -q --whatrecommends cups

Maybe there are patterns installed?

zypper se -sit pattern

Now it does work. Thanks. Only 11 packages required instead of 80.
I’d seen that option in the manual but it’s said there that that option is the same as --no-recommends. Weird because -no–recommends has no effect while ‘solver.onlyRequires’ has. Is it a bug?

I’m not seeing anything out of the way there.

At least it sounds like a bug. You should report it on https://bugzilla.opensuse.org (same user/password as here). But reporting zypper bug requires providing solver testcase (which is generated by zypper). If you already updated, it is too late. You would need to revert to snapshot before this update to be able to generate test case.