How to install Wine 6 on CentOS 8 desktop

You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose

Let’s capture the steps required to install Wine 6 on CentOS 8 Desktop. wine It is an open source software solution that allows Linux users to run Microsoft Windows applications as if they were on a Windows computer. At the time of writing, the latest stable version of Wine is version 6. This version can be used for installation and has a lot of improvements, including:

  • Vulkan backend for WineD3D
  • DirectShow and Media Foundation support
  • Text console redesign
  • USB kernel driver
  • Mouse position record
  • Plug and play device notification
  • WebSocket API
  • Initial support for Apple Silicon

I couldn’t find any RPM repositories containing Wine 6 packages. This gives us the option to install Wine 6 on CentOS 8 Desktop by building software from source code.

You will need console or ssh with sudo privileges or root user to access the system. Internet connection is also required for package installation and downloading of Wine tar files.

Step 1: Update the system

Updating the system is another way to verify the work package management system on CentOS 8 systems.

sudo dnf -y update

As always, we rebooted the system after the upgrade.

sudo reboot

Step 2: Install software build dependencies

Install development tools on CentOS 8:

sudo dnf groupinstall 'Development Tools' -y

Enable EPEL and PowerTools repository:

sudo dnf -y install epel-release
sudo dnf config-manager --set-enabled PowerTools

Install other build dependencies:

sudo yum -y install libxslt-devel libpng-devel libX11-devel zlib-devel libtiff-devel freetype-devel libxcb-devel  libxml2-devel libgcrypt-devel dbus-devel libjpeg-turbo-devel  fontconfig-devel gnutls-devel gstreamer1-devel libXcursor-devel libXi-devel libXrandr-devel libXfixes-devel libXinerama-devel libXcomposite-devel mesa-libOSMesa-devel libpcap-devel libusb-devel libv4l-devel libgphoto2-devel gstreamer1-devel libgudev SDL2-devel gsm-devel libvkd3d-devel libudev-devel 

Step 3: Install Wine 6 on CentOS 8 desktop

If wget is missing from the package installed on the system, install it.

sudo dnf -y install wget

Then use wget to extract the latest version of Wine 6 archive.


Unzip the file downloaded using tar.

tar xvf wine-6.0.tar.xz

Compile and build Wine 6 on CentOS 8:

cd wine-6.0/
./configure --enable-win64 
sudo make install

Step 4: Confirm that Wine 6 is installed on CentOS 8

Verify the installation of Wine 6 on CentOS 8 by checking the version:

$ wine64 --version

For basic usage of wine, please check the help page.

$ wine --help

The following example is used to run Notepad++ editor on Linux.

$ cd ~/Downloads
wine64 ./npp.7.7.Installer.exe

Follow the same installation prompts as other Windows applications.

Similar wine installation guide:

How to install Wine on Ubuntu

How to install Wine on Debian

How to install Wine on Fedora

You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose