How to get ZYpp to ignore package downgrades?

Hi,

I have added my own OBS repo on my openSUSE Tumbleweed machine and part of the reason why I created this repo was so I could install later versions of software (specifically Vim, gVim and Vim-data) than that available in the official repos, unfortunately whenever I run

zypper dup

these packages get downgraded to the version in the official repos. Is there a way to prevent this from happening?

Thanks for your time,
Brenton

Yes. You need to change the vendor to your own repo.

zypper dup --from [repository]

https://en.opensuse.org/SDB:Vendor_change_update

You can try giving your own repo a priority of 98, instead of the default of 99. That will give a preference to your repo.