I'm not familiar as I don't use zypper, however this might help:
https://en.opensuse.org/images/3/30/Zypper-cheat-sheet-2.pdf
https://manpages.org/zypper/8 (worth mentioning you can access this on your own system without the Internet by running "man zypper", search with "/", your search term, press enter, then n and Shift+n for next/previous result)
https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/latest/version-locking.html
And Ctrl+F these pages for addlock.