In this tutorial, we will show you how to install Wine on CentOS 8. For those of you who didn’t know, Wine is a free and open-source application that allows users to run Windows applications in a Linux environment. As we know that Linux does not support windows executable so WineHQ is a solution to run Windows applications and Linux systems
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you through the step-by-step installation of Wine on a CentOS 8 server.
Prerequisites
- A server running one of the following operating systems: CentOS 8.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install Wine on CentOS 8
Step 1. First, let’s start by ensuring your system is up-to-date.
sudo dnf clean all sudo dnf update
Step 2. Installing Dependency Packages.
Now install required packages for Wine:
sudo dnf groupinstall 'Development Tools' sudo 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 3. Installing Wine on CentOS 8.
First, download the wine source code. Use the below commands to download it:
cd /tmp wget https://dl.winehq.org/wine/source/4.x/wine-4.21.tar.xz tar -xvf wine-4.21.tar.xz -C /tmp/
Then, configure wine using one of the following commands based on your system architecture:
### 32-bit Systems ### cd wine-4.21/ ./configure make make install ### 64-bit Systems ### cd wine-4.21/ ./configure --enable-win64 make make install
Check the wine version:
### 32-Bit Systems ### wine --version ### 64-Bit Systems ### wine64 --version
Congratulations! You have successfully installed Wine. Thanks for using this tutorial for installing Wine on CentOS 8 system. For additional help or useful information, we recommend you to check the official Wine website.