Force zypper to install a specific version

rpmsusezypper

I have my own personal repo with older versions of rpms in it. If I want to install boost-license version 1.36.0.11.17 I do the following

zypper install boost-license=1.36.0-11.17

this seems to be broken however as if I change the rev to one I know doesn't exist then it simply reverts to installing the latest rev instead of erroring, which is stupid.

I find the only way to force zypper to installa specific rpm I want is to state the exact rpms URL httlp//mylocalrepository/myrpms/boost-1.36.0.11.17.src.rpm.

Any ideas how I can use zypper as it was designed to install a specific version and error if it doesn't exist?

Best Answer

zypper in -f <package-with-version>

If you want to find out exact version, you can find it with:

zypper se <package>
Related Question