How to Install Wine on RHEL-based Linux Distributions

Wine is an open-source and free application for Linux that enables users to run any windows based software and games on Unix/Linux-like operating system.

Recently, the Wine team proudly announced the stable release of 7.0 and made available for download in source and binary packages for various distributions such as Linux, Windows and Mac.

This release describes a year of development effort and over 9,100 individual changes, which includes a large number of enhancements that are recorded in the release notes below. The main highlights are:

  • Most modules converted to PE format.
  • Greater theming support, with a bundled theme for a more modern look.
  • Largely improved HID stack and joystick support.
  • New WoW64 architecture.
  • Various bug fixes.

[ You might also like: How to Install Wine in Debian, Ubuntu and Linux Mint ]

In this article, we will guide you on the simplest way to install the latest release of Wine 7.0 version in RHEL-based distributions such as CentOS Stream, Rocky Linux and AlmaLinux using source code (difficult and only suitable for experts) and on Fedora Linux using official wine repository (easy and recommended for new users).

Installing Wine Using Source Code in RHEL Systems

Step 1: Installing Dependency Packages

We need to install ‘Development Tools‘ with some core development tools such as GCC, flex, bison, debuggers, etc. this software is must required to compile and build new packages, install them using YUM command.

# yum -y groupinstall 'Development Tools'
# yum install gcc libX11-devel freetype-devel zlib-devel libxcb-devel libxslt-devel libgcrypt-devel libxml2-devel gnutls-devel libpng-devel libjpeg-turbo-devel libtiff-devel dbus-devel fontconfig-devel
Note: On CentOS/RHEL 8 versions, yum package manager no longer in use, you should use dnf command.
# dnf -y groupinstall 'Development Tools'
# dnf -y install gcc libX11-devel freetype-devel zlib-devel libxcb-devel libxslt-devel libgcrypt-devel libxml2-devel gnutls-devel libpng-devel libjpeg-turbo-devel libtiff-devel dbus-devel fontconfig-devel

Step 2: Downloading the Wine Source Code

Download the source file using wget command under /tmp directory as a normal User.

$ cd /tmp
$ wget http://dl.winehq.org/wine/source/7.0/wine-7.0.tar.xz

Step 3: Extracting Wine Source Code

Once the file is downloaded under /tmp directory, use the below tar command to extract it.

$ tar -xvf wine-7.0.tar.xz -C /tmp/

Step 4: Compiling Wine from Sources

It is recommended to compile and build a Wine installer as a normal User. Run the following commands as a normal user.

Note: The installer might take up to 20-30 minutes and in the middle, it will ask you to enter the root password.

---------- On 64-bit Systems ---------- 
$ cd wine-7.0/
$ ./configure --enable-win64
$ make
# make install			[Run as root User]

---------- On 32-bit Systems ---------- 
$ cd wine-7.0/
$ ./configure
$ make
# make install			[Run as root User]

Install Wine on Fedora Linux Using Wine Repository

If you are using the latest version of Fedora Linux, you can install Wine using the official Wine repository as shown.

---------- On Fedora 36 ---------- 
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/36/winehq.repo
# dnf install winehq-stable

---------- On Fedora 35 ---------- 
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/35/winehq.repo
# dnf install winehq-stable

How to Use Wine to Run Windows Apps & Games

Once the installation completes run the “winecfg” configuration tool from GNOME desktop to see the supported configuration. If you don’t have any of the desktops, you can install it by using the below command as the root user.

# dnf groupinstall workstation 
OR
# yum  groupinstall "GNOME Desktop"

Once the X Window System installed, run the command as a normal user to see wine configuration.

$ winecfg 
Winecfg Configuration
Winecfg Configuration

To run the Wine, you must specify the full path to the executable program or program name as shown in the example below.

--------- On 32-bit Systems ---------
$ wine notepad
$ wine c:\\windows\\notepad.exe
--------- On 64-bit Systems ---------
$ wine64 notepad
$ wine64 c:\\windows\\notepad.exe
Wine Running Windows Programs on Linux
Wine Running Windows Programs on Linux

Wine is not perfect, because while using wine we see so many programs crashes. I think the wine team will soon fix all bugs in their upcoming version meanwhile do share your comments using our below form.

If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? do ask for help in the comments section.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

202 thoughts on “How to Install Wine on RHEL-based Linux Distributions”

  1. Hello I have this error.

    Error:
    Problem: package winehq-stable-1:5.0.2-1.1.x86_64 requires wine-stable64 = 1:5.0.2-1.1, but none of the providers can be installed
    – cannot install the best candidate for the job
    – nothing provides libm.so.6(GLIBC_2.29)(64bit) needed by wine-stable64-1:5.0.2-1.1.x86_64
    – nothing provides libSDL2-2.0.so.0()(64bit) needed by wine-stable64-1:5.0.2-1.1.x86_64
    – nothing provides libFAudio.so.0()(64bit) needed by wine-stable64-1:5.0.2-1.1.x86_64
    – nothing provides libvkd3d.so.1(VKD3D_1_0)(64bit) needed by wine-stable64-1:5.0.2-1.1.x86_64
    – nothing provides libvkd3d.so.1()(64bit) needed by wine-stable64-1:5.0.2-1.1.x86_64

    Reply

Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.