How to install an older version of wine

Questions about Wine on Linux
Locked
Braveheart
Newbie
Newbie
Posts: 2
Joined: Thu Jan 14, 2021 8:52 am

How to install an older version of wine

Post by Braveheart »

Hello everybody,

I would like to install an older version of wine. As i am not a dude with linux, can anybody explain me, step by step, how to do this ?

Thank you !
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: How to install an older version of wine

Post by jkfloris »

I would like to install an older version of wine
Why? If an older version of Wine works and a newer version doesn't, then you should file a bug.
can anybody explain me, step by step, how to do this?
You didn't tell us which Linux distribution you use. And which Wine version you want.

If you use Ubuntu/ Debian/ Mint and have the WineHQ repository enabled
you can install an older version with:

Code: Select all

# Select a version with:
apt policy winehq-stable
--- sample output ---
Version table:
     5.0.3~bullseye 500
        500 https://dl.winehq.org/wine-builds/debian bullseye/main amd64 Packages
     5.0.2~bullseye 500
        500 https://dl.winehq.org/wine-builds/debian bullseye/main amd64 Packages
     5.0.1~bullseye 500
        500 https://dl.winehq.org/wine-builds/debian bullseye/main amd64 Packages
     5.0.0~bullseye 500
        500 https://dl.winehq.org/wine-builds/debian bullseye/main amd64 Packages
     4.0.4~bullseye 500
        500 https://dl.winehq.org/wine-builds/debian bullseye/main amd64 Packages
     4.0.3~bullseye 500
        500 https://dl.winehq.org/wine-builds/debian bullseye/main amd64 Packages
     4.0.2~bullseye 500
        500 https://dl.winehq.org/wine-builds/debian bullseye/main amd64 Packages
---
# In this example I use version "4.0.3~bullseye"
# The Wine packages from WineHQ consist of 4 packages:
#  winehq-stable
#  wine-stable
#  wine-stable-amd64
#  wine-stable-i386
# You can install this version with:
sudo apt install --install-recommends winehq-stable=4.0.3~bullseye wine-stable=4.0.3~bullseye wine-stable-amd64=4.0.3~bullseye wine-stable-i386:i386=4.0.3~bullseye
Braveheart
Newbie
Newbie
Posts: 2
Joined: Thu Jan 14, 2021 8:52 am

Re: How to install an older version of wine

Post by Braveheart »

Thank you Jkfloris, i will try that.

Yes, it is exactly this : my software, that run since a long time on my old laptop (Ubuntu 16.04LTS), was suddenly uninstallable on my new one (Ubuntu 20.04LTS) with the last version of Wine. An error message occur when i run the setup.exe file. I tried a lot of things to fix the issue since one week but nothing works.

Witch is the oldest version i can install on Ubuntu 20.04LTS ?

Thanks !
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: How to install an older version of wine

Post by jkfloris »

Witch is the oldest version i can install on Ubuntu 20.04LTS ?
The oldest version on the WineHQ repo is version wine-stable 4.0.4~focal
Yes, it is exactly this : my software, that run since a long time on my old laptop (Ubuntu 16.04LTS), was suddenly uninstallable on my new one (Ubuntu 20.04LTS) with the last version of Wine. An error message occur when i run the setup.exe file. I tried a lot of things to fix the issue since one week but nothing works.
Is this software free to download somewhere? Maybe we can figure out what is wrong.
nru1979
Level 2
Level 2
Posts: 16
Joined: Thu Nov 05, 2020 3:23 am

Re: How to install an older version of wine

Post by nru1979 »

Hello,
You can manually download any ubuntu package here:
https://dl.winehq.org/wine-builds/ubunt ... nary-i386/
or if you want to try your luck with an older distro here:
https://dl.winehq.org/wine-builds/ubuntu/pool/main/
Do not forget to download both wineserver and wineclient packages. For example:
wine-stable-i386_2.0.3~artful_i386.deb
wine-stable_2.0.3~artful_i386.deb

Once downloaded you have the choice between installing and unpacking.
Installing a wrong version will damage your distro but if you are sure of yourself, here is:
sudo dpkg -i wine-stable-i386_2.0.3~artful_i386.deb
sudo dpkg -i wine-stable_2.0.3~artful_i386.deb
sudo apt-get --fix-broken install

if you want to extract,
sudo dpkg-deb -x wine-stable-i386_2.0.3~artful_i386.deb
sudo dpkg-deb -x wine-stable_2.0.3~artful_i386.deb
then you can move the extracted binaries to your /home/user/winebin/... and run your wine using full access path.
example:
/home/user/winebin/bin/wine somecommand.exe
saltbayfour
Newbie
Newbie
Posts: 1
Joined: Fri Jun 18, 2021 12:53 am

Re: How to install an older version of wine

Post by saltbayfour »

The simplest solution probably is to install Playonlinux

Playonlinux installs application in it's own virtual drive where you can set which version of wine you want to use for that application (and easily change it if needed).
rcarballo
Newbie
Newbie
Posts: 3
Joined: Fri Sep 03, 2021 11:22 am

Re: How to install an older version of wine

Post by rcarballo »

We figured out how to install an older release. We wanted to stay with v6.15 from the staging area for Ubuntu v20.04. You can use our steps for any other versions and branches.

**BEGIN: prep the environment for the installers**
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu/ focal main"
sudo apt update
**END:

**BEGIN: You must install in the order given**
sudo apt install --install-recommends wine-staging-i386=6.15~focal-1 -y
sudo apt install --install-recommends wine-staging-amd64=6.15~focal-1 -y
sudo apt install --install-recommends wine-staging=6.15~focal-1 -y
sudo apt install --install-recommends winehq-staging=6.15~focal-1 -y
**END:

You need to get the correct folder for your Linux. For us it was the "focal" folder because we are running Ubuntu v20.04. Thus, our files were at,

https://dl.winehq.org/wine-builds/ubunt ... ary-amd64/
and
https://dl.winehq.org/wine-builds/ubunt ... nary-i386/

For the "wine-staging-i386" package the filename is: wine-staging-i386_6.15~focal-1_i386.deb
Thus, its version is "6.15~focal-1".
You can discern the versions for the other packages from their filenames: wine-staging, wine-staging-amd64 and winehq-staging.
strikvid
Newbie
Newbie
Posts: 1
Joined: Wed Apr 20, 2022 2:00 pm

Re: How to install an older version of wine

Post by strikvid »

Open Lutris -> on the left click on the gear symbol next to "Runners" -> scroll down to "Wine" and click on the blue button next to it called "Manage Versions" when hovering over it -> select a Lutris version.
DrM1173
Level 1
Level 1
Posts: 5
Joined: Thu Aug 27, 2015 12:12 pm

Re: How to install an older version of wine

Post by DrM1173 »

You can also use PlayOnLinux to keep using older Wine versions. PlayOnLinux is similar to Lutris.
Locked