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 which are not available to Linux users. As we know that Linux does not support windows executables so WineHQ is a solution to run Windows applications and Linux systems.
The latest version of Wine 8.0 stable has been released on January 24, 2023. You can read about main highlights of this version from WINE announcement page. This article will help you to install Wine 8.0 stable release on RHEL-based systems by compiling it from the source code.
Step 1: Install Requierd Packages
Wine required many development packages. First, we recommend upgrading all system packages using the following commands.
yum clean all
Now install the required packages for Wine using the yum package manager using the following commands.
yum groupinstall 'Development Tools'
yum 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: Installing Wine from Sources
RPM packages for wine are not available for the latest versions, So we need to download the wine source code. Use the below commands to download it.
tar -Jxf wine-8.0.tar.xz -C /tmp
Use the ./configure script to prepare the source for the installation based on the system hardware. This will create the Makefile for the compilation and set the installation environment for Wine according to your system.
## For 32-Bit Systems:
## For 64-Bit Systems:
Finally, run the make and make install command to compile the wine source and install it on your system.
Source code compilation will be some time to complete based on the system resources. Wait for the installation to complete successfully.
Step 3: Verify Installation
Use the following command to check the version of wine installed on your system
## On 32-Bit Systems:
## On 64-Bit Systems:
Step 3: Running Windows Application with Wine
To use wine we need to log in to the GUI desktop. After that Download a windows executable (.exe) file like PuTTY on your system and open it with Wine as below screenshot or use the following command.