How To Install Wine 4.0 on CentOS 8 & Fedora 30/29

Step 1 – Prerequisite

First of all, become root user on your CentOS 8 system. Then continue to the tutorial.

sudo -i

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

dnf clean all
dnf update

Now install required packages for Wine using yum package manager using following commands.

dnf groupinstall 'Development Tools'
dnf install libX11-devel freetype-devel zlib-devel libxcb-devel libxslt-devel libgcrypt-devel libxml2-devel gnutls-devel libpng-devel libjpeg-turbo-devel libtiff-devel gstreamer-devel dbus-devel fontconfig-devel

Step 2 – Install Wine 4

RPM packages for wine are not available for the latest versions, So we need to download wine source code. Use the below commands to download it.

cd /opt
tar -Jxf wine-4.18.tar.xz
cd wine-4.18

Configure wine using one of the following commands based on your system architecture. This will set the installation environment for Wine according to your system.

For 32-Bit Systems:

For 64-Bit Systems:
./configure  --enable-win64

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

sudo make
sudo make install

Step 3 – Check Wine Version

Use the following command to check the version of wine installed on your system

On 32-Bit Systems:
wine --version

On 64-Bit Systems:
wine64 --version

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

Install Wine CentOS 8

Was this answer helpful?

Related Articles

How to Enable CSF Firewall Web UI

Step 1 – Install Required Perl Modules: CSF UI required some of Perl modules to be installed...

How to Install and Configure CSF Firewall on Linux

Step 1: Download CSF Source Archive Download latest CSF archive source code from its official...

How To Install mod_cloudflare for Apache on Ubuntu

Install mod_cloudflare for Apache First of all, enable the PPA of Cloudflare module to your...

How to Install Fail2Ban on CentOS 8 & Fedora 30/29

Step 1 – Install Fail2ban on CentOS 8 First of all, install epel-release package to configure...

How To Install MariaDB on Debian 10 (Buster)

Step 1 – Prerequsiteis You can find the MariaDB Apt configuration file from the official...