I’m trying to run zypper migration in a non-interactive mode so we can update our systems remotely with no user interaction. I want to find how to change the default answer for ‘zypper migration --non-interactive --auto-agree-with-licenses’
The command reaches this warning message and answers with a ‘c’ Problem: problem with the installed samba-tool-4.14.5+git.174.db4f1eb7fe0-9.1.x86_64
Solution 1: install samba-tool-4.17.12+git.485.dd39ea0501e-150500.3.26.5.x86_64 from vendor SUSE LLC https://www.suse.com/*
replacing samba-tool-4.14.5+git.174.db4f1eb7fe0-9.1.x86_64 from vendor obs://build.opensuse.org/home:dmulder*
Solution 2: keep obsolete samba-tool-4.14.5+git.174.db4f1eb7fe0-9.1.x86_64* Choose from above solutions by number or cancel [1/2/c/d/?] (c): c Migration failed.
I want it to answer ‘2’ to not stop the zypper migration. Is there a way to set that in the command?
If you already know that you want to keep this particular package in the current version, why not simply lock it before starting the migration (and maybe unlock it afterwards)? That way you could be sure that only this package is affected and not other ones as well.
If you’d specify a different default answer to all possible dependency conflicts (which I don’t think is possible, but I may be wrong), you might end up with nasty surprises if some of your machines turn out to have more dependency conflicts than just the one that you expect.