Wine (Wine Is Not an Emulator) allows the running of many Windows programs on Unix. Wine creates an execution layer that enables you to install and run windows applications on Linux systems. In this guide, we demonstrate how to install wine 6 on CentOS 8. Note that not all Windows applications can run in Wine. Check the Wine AppDB database for a list of applications that are confirmed to work under wine.
Step 1:Update System
Update your system packages to their latest versions. Run:
$ sudo dnf -y update
Step 2: Install software build dependencies
First, we install development tools on CentOS 8.
Run the command below:
$ sudo dnf groupinstall 'Development Tools' -y
Next,enable the EPEL (Extra Package for Enterprise Linux) and PowerTools repository. Execute the command:
$ sudo dnf -y install epel-release
$ sudo dnf config-manager --set-enabled PowerTools
We now need to install several build dependencies for wine. Run the command:
$ 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.0 on CentOS 8
Download the latest version of wine with the command:
Once the download is completed, unzip the wine file using tar. Run the command:
$ tar xvf wine-6.0.tar.xz
Next, Compile and build wine using one of the following command;
$ cd wine-6.0/
sudo make install
Step 4: Check Wine Version
To confirm successful installation of Wine 6 check the version installed by running:
$ wine64 --version
Use the help page for more information on wine:
$ wine --help
Step 5: Using Wine on CentOS
You can now run Windows applications using Wine,for example to run Notepad
Then run the notepad installer as shown.
$ wine ./npp.7.7.Installer.exe
If you are prompted to install Wine Gecko or Mono, select install and proceed with the installation.
Follow the necessary steps to complete the installation of Notepad similar to any other windows application.
And that is how you can install Wine 6 on CentOS 8. We do hope that you found this guide valuable and that you can comfortably install Wine on your CentOS 8 environment. Your feedback is most welcome.