Vendor change in YaST and subsequent updates

Hi,

I’m never entirely sure how vendor change works. So for example, i add a repo from obs (only for one package, in this case libfreetype), and change vendor to it. Will the coming updates ‘reset’ this vendor change, or will the packages for which the vendor has been changed remain untouched?

Thank you!

Hi, quoting from “man zypper”:

update (up) [options] [packagename]…

This command will not update packages which would require change of package vendor unless the vendor is specified in
/etc/zypp/vendors.d, or which would require manual resolution of problems with dependencies. Such non-installable
updates will then be listed in separate section of the summary as “The following package updates will NOT be
installed:”.

So the short answer is “No, vendor change wil not be reverted unless explicitly instructed to do so”.
A special case is the distribution upgrade, where you can decide what to do on the fly:

dist-upgrade (dup) [options]

–[no-]allow-vendor-change
Whether to allow changing the vendor of installed resolvables [zypp.conf:solver.dupAllowVendorChange]. Setting
this to no might be useful if you do not want packages from foreign repos being dup’ed to the distributions
version (or vice versa).

Ah, so basically

zypper dup -no-allow-vendor-change

should do the trick?

Yes if you really intend to do a dist-upgrade (say to upgrade your Leap 42.2 to 42.3 or to update Tumbleweed to a newer snapshot).
Otherwise, the simple “zypper up” or the equivalent update via YaST Software will leave your vendors untouched as well, unless you select manually a specific version or repo to update from.

yes for TW zypper dup -no-allow-vendor-change will do what you want, but note the -no-allow-vendor-change is now the default for dup as of several months ago so no need to specify.

Well then, that’s fantastic news!

Thank you, seems I’ll be 'dup’ing a lot :slight_smile: Hope Tumbleweed stays stable for me :slight_smile:

Kind regards,

I am opposed to this “no-allow-vendor-change”
The reason is why it makes the option of giving priority to Yast in vain, in practice there is an option that no longer needs.

On 11/08/2017 07:16 AM, V idocq wrote:
>
> I am opposed to this “no-allow-vendor-change”
> The reason is why it makes the option of giving priority to Yast in
> vain, in practice there is an option that no longer needs.
>
>

Then change it to your liking in /etc/zypp/zypp.conf


Ken
linux since 1984
S.u.S.E./openSUSE since 1996

It’s been done for long