Welcome to our guide on how to install Wine 5 on Fedora 31/30/29. Wine is an open source software that allows you to run Microsoft Windows applications on Linux. Read more on Wine 5 release and new features. By leveraging its Winelib library, you can compile Windows applications to help with porting them to Unix-like systems.
For Ubuntu 18.04 / Linux Mint 19 users, check How to Install Wine 5 on Ubuntu / Linux Mint.
Step 1: Add WineHQ repository
Start by adding WineHQ repository with the latest stable packages for Wine.
sudo dnf -y install dnf-plugins-core sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/31/winehq.repo
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/30/winehq.repo
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/29/winehq.repo
Step 2: Install Wine 5 on Fedora 31/30/29
After adding the repository, install any of the following Wine 5 packages on Fedora 31/30/29.
Stable branch – (Recommended)
sudo dnf -y install winehq-stable
Development branch – Only for tests
sudo dnf install winehq-devel
Staging branch – Bleeding edge
sudo dnf install winehq-staging
More information on installed package can be checked with the rpm command.
$ rpm -qi winehq-stable Name : winehq-stable Epoch : 1 Version : 5.0.0 Release : 8.1 Architecture: x86_64 Install Date: Sat 25 Jan 2020 06:11:02 PM UTC Group : Emulators Size : 62789 License : LGPLv2+ Signature : RSA/SHA512, Wed 22 Jan 2020 05:48:59 PM UTC, Key ID 76f1a20ff987672f Source RPM : wine-stable-5.0.0-8.1.src.rpm Build Date : Wed 22 Jan 2020 03:17:23 AM UTC Build Host : localhost Vendor : obs://build.opensuse.org/Emulators URL : https://www.winehq.org/ Summary : WINE Is Not An Emulator - runs MS Windows programs Description : .....
The version of wine installed can also be checked using.
$ wine --version wine-5.0
To configure wine, run:
Step 4: Install winetricks
Winetricks is a helper script to download and install various redistributable runtime libraries needed to run some programs in Wine. These may include replacements for components of Wine using closed source libraries.
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks chmod +x winetricks sudo mv winetricks /usr/local/bin/
That’s awesome. Now visit the Wine Application Database which has over 20,000 applications and choose the ones to run in Wine.
More on Fedora: