Written by , Updated on February 1, 2020

With the increasing popularity of Linux desktops, There is another requirement occurred that we should have an application that can be used to run Windows applications. Windows has a long list of beautiful applications for users who are not available for Linux users. As we know that Linux does not support windows executable so WineHQ is a solution to run Windows applications and Linux systems. This article will help you to install Wine 5 Stable Release on Fedora systems.

Step 1 – Prerequisite

You must have a sudo privileged account for the Wine installation on Fedora.

Wine required many development packages. First, we recommend upgrading all system packages using the following commands.

sudo dnf clean all
sudo dnf update

Step 2 – Install Wine on Fedora

The Fedora team provides rpm packages for the easy installation. You can get the official yum repository provided by Wine team for the installation of latest Wine packages.

Fedora 31:
rpm --import https://dl.winehq.org/wine-builds/winehq.key
dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/31/winehq.repo

Fedora 30:
rpm --import https://dl.winehq.org/wine-builds/winehq.key
dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/30/winehq.repo

The Fedora 29 and below versions yum repository doesn’t contain Wine 5.0 packages, But you can use the repository to install Wine 4.

Finally, run the make and make install command to compile the wine source and install it on your system.

sudo dnf install winehq-stable

The above command will install a large number of packages as a dependency. The installation may take time as per your network speed. Enjoy a cup of coffee until the installation finishes.

Step 3 – Check Wine Version

After finishing the installation process, Use the following command to check the version of wine installed on your system.

wine --version

wine-5.0

How to Use Wine?

To use wine we need to login to the CentOS/Fedora desktop. After that Download a windows executable (.exe) file like PuTTY on your system and open it with Wine as below screenshot or use following command.

wine putty.exe