How to install wine directly from the site winehq

I need a recent version of wine
But I can not find instructions to download and install directly from the winehq site
I only found instructions to use with Ubuntu
Here are the instructions

 **wget -nc https://dl.winehq.org/wine-builds/Release.key**
**sudo apt-key add Release.key**
**sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu**

Please, how do I use these commands in OpenSuse?
But, it will be better if someone has a step by step to install wine directly from the site winehq

Please, any idea?

Hi
There is no openSUSE repository by the looks…
https://dl.winehq.org/wine-builds/

Use the wine repository on OBS?
https://build.opensuse.org/package/show/Emulators/wine


zypper ar -f -g -n "openSUSE-Wine" https://download.opensuse.org/repositories/Emulators/openSUSE_Leap_42.3/ repo-wine
zypper ref
zypper up -r repo-wine wine

don’t do that winehq only provides the source code and apparently a debian build if you want the current wine 3.12 for LEAP 42.3 get it from the Emulators repo

zypper ar -f http://download.opensuse.org/repositories/Emulators/openSUSE_Leap_42.3/Emulators.repo
zypper in wine-3.12

or after adding the Emulators repo you can use the versions tab in yast to select the newer build

Thank you, now I get the wine 3.12

have a noteBook and I installed OpenSuse Leap 15
I went to check the wine version with the command “wine --version”
I received the answer “wine 3.7”
That does not sound right, what is the true wine version in Leap 15?

after it is released LEAP in the main repo does not get new packages only bug and stability fixes new packages can be found in the community repositories
currently wine for LEAP 15 in the main OSS repo is at version 3.7 if you want wine 3.12 you have to get it from the Emulators repo
so do the same as above but for LEAP 15.0

zypper ar -f http://download.opensuse.org/repositories/Emulators/openSUSE_Leap_15.0/Emulators.repo
zypper in wine-3.12

But wine 3.7 is a newer version than 3.12 ?
Or not?

well no 7 < 12 so the newest is 3.12 from the Emulators repo but the officially supported version is 3.7 (you can get support for 3.12 too)

Very confusing. If I use a calculator and digit 3.7 - 3.12
the result is +0.58 therefore 3.7> 3.12
But it looks like the version numbers use another math rotfl!

The period in version numbers are just separators not a decimal point.

In the arithmetic that I was taught at school the separator between units and decimal fractions was either e.g. “4·2” or “4,2” depending on language/locale. It would never be “4.2”. Where did you go to school?