
Hello, Am Freitag, 10. Juli 2020, 19:46:37 CEST schrieb Andrei Borzenkov:
10.07.2020 19:35, Michael Schroeder пишет:
How can I prefer Nginx, if the user did not specify one nor has one installed?
With a recommends or a suggests.
[...]
OBS has Prefer: which can be used to break ties. Is there anything that can be set on end-user sytem to tell zypper to prefer specific package?
The following should do what you want: Requires: httpd Suggests: nginx "Suggests" is the soft version of "Recommends", and the difference (assuming the default zypp/zypper configuration) that recommended packages get installed by default (can be changed in the zypp configuration), while suggested packages don't get installed by default. The combination of Requires and Suggests should[1] prefer the suggested package (nginx) if there are multiple options, and none of them is installed yet. Regards, Christian Boltz [1] I'm not sure if I ever tested that myself ;-) -- [...] sollte für einen Ortskundigen also kinderleicht zu finden sein. Wir sind die Leute, die den dicken weißgrünen Europcar Lastwagen so bescheuert mitten auf der Straße geparkt haben. [Kristian Köhntopp zieht um] -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org