How to use custom wine builds
Published on Mar 15, 2021 by: Ahmed Elsayed
Updated on Mar 20, 2021
Wine is an opensource application that anyone can build it from the source code, so you can build older version of wine, and you can build wine with additional patches that can add extra functionality or fix games that do not work using wine installed on you Linux distro. The most popular custom wine builds are wine-tkg, proton-tkg, and proton-GE which will be explained later in this tutorial.
proton-tkg, and proton-GE can be used with Steam, and outside of Steam if you want. Wine-tkg can not be used with Steam.
- Some games need a certain version of wine to work properly.
- DotNet from v 4.5 to v 4.9 can only be installed using wine 5.11 (currently broken)
- Custom wine builds like wine-tkg add some patches for certain games that do not exist with official wine builds.
- You can use Proton and Proton-GE outside of Steam to run games from other stores like: GOG and Epic Games.
You can download wine-tkg, and proton-tkg from this link https://github.com/Frogging-Family/wine-tkg-git/releases
(1) The first choice is proton-tkg which can be used the same way as proton-GE, check this tutorial to know more about proton-GE [link]
(2) The second choice is wine-tkg which can only be installed on Arch, and Arch based Linux distros like: Manjaro, and EndeavourOS.
If you do not use Arch, or you do not want to install wine-tkg on your system, check this repo instead https://github.com/Kron4ek/Wine-Builds/releases
There are 6 options to choose from for each release:
- wine-devel (64bit).
- wine-staging (64bit).
- wine-staging-tkg (64bit)
- wine-staging-tkg (32bit)
- wine-staging (32bit).
- wine-devel build (32bit).
- wine-staging = wine-devel + staging patches.
- wine-staging-tkg = wine-staging + tkg patches.
- 64bit wine builds can run 32bit applications and 64bit applications, but 32bit wine builds can run only 32bit applications.
To extract the compressed file that you downloaded before, right-click on the compressed file, and choose Extract archieve here, autodetect subfolder from Extract sub menu
These steps might be different based on the desktop enviornment your Linux distro uses.
You can use to the extracted custom wine build by pointing to its location like this example:
That will open 7z1900-x64.exe using the custom wine build that we downloaded earlier.
Wine uses the default location of wineprefix ~/.wine if you did not use WINEPREFIX enviornment variable which is explained in this tutorial [link]
Custom wine builds has its own winecfg which can be used like this example:
winetricks uses the default wine installed on your Linux distro, but you can force winetricks to use custom wine build instead by using WINE enviornment variable like this example:
This workaround can help with installing DotNet from version 4.5 to 4.8 which is broken with wine from version 5.12 to the latest version 6.4.
- Download wine version 5.11 from this link [link]
- Extract it as I explained before [link]
- If you want to install Microsoft .Net framework version 4.5 type this code in the terminal:
WINE=~/Downloads/wine-5.11-staging-amd64/bin/wine winetricks dotnet45 -q
Change dotnet45 with whatever version you want to install like:
Proton and Proton-GE can be used outside of Steam, but you need to know a few things first:
- wine and winetricks need to be installed on you system.
- You need to install dxvk manually.
- You can not use Proton launch options, you can use wine environment variables instead.
- You need to define a separate wineprefix.
- You need to define the location of the executable of Proton / Proton-GE.
(1) To install Proton-GE, check this tutorial [link]
(2) Install dxvk using winetricks:
WINEPREFIX=~/proton-ge WINE=~/.steam/root/compatibilitytools.d/Proton-6.1-GE-2/dist/bin/wine winetricks dxvk181
You can run any game using Proton-GE like this:
WINEPREFIX=~/proton-ge ~/.steam/root/compatibilitytools.d/Proton-6.1-GE-2/dist/bin/wine [location_of_the_executable_of_the_game]
- WINEPREFIX is used to define a separate location for Proton-GE
- WINE is used to define the location of the executable of Proton.