Cant use wine in terminal even tho wine-stable is installed

when trying to use wine to set up a game from terminal i get this

$ wine setup.exe
bash: wine: command not found

even tho winehq-stable.x86_64 is installed.

I can still do this install if i use lutris and make the setup.exe the executable of the game. after that i can change the executable to the executable of the game and the game works fine.

this didn’t use to happen. i could use wine setup.exe to install games normally.

also lutris says “wine in not installed on your system.”

i think this started to happen after i update wine from their website using dnf install winehq-stable

Check this:

rpm -q -a wine\*; rpm -V -a wine\*; echo ${PATH}
$ rpm -q -a wine\*; rpm -V -a wine\*; echo ${PATH}
wine-filesystem-10.15-1.fc42.noarch
wine-stable-10.0.0-1.1.x86_64
winehq-stable-10.0.0-1.1.x86_64
....L....    /usr/bin/wine
....L....    /usr/bin/wineserver
/home/samir/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/var/lib/snapd/snap/bin

Yeah, winehq-stable is not the “wine” package from Fedora. It’s possible that the one you installed (from where?) just doesn’t work on Fedora (or conflicts with the “alternatives” setup that is done by the Fedora package).

from the official wine website.

where should i install wine from?
should i remove wine-stable?

It looks like some symlinks are broken, try reinstalling it:

sudo dnf reinstall winehq-stable
1 Like

This might just be the interaction with the “alternatives” that are set up by the fedora wine package that I mentioned above.

You can just install it from the Fedora repositories, no need to use third-party repositories.

1 Like

that did it. now it works normally.
thanks a lot.

1 Like