In this article, we will have explained the necessary steps to install and configure Wine on CentOS 7. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
Wine is an open source software that allows you to run Microsoft Windows applications on Linux. Wine stands for Wine Is Not an Emulator. And it’s not, it is an interface that translates Windows system calls into equivalent POSIX calls used by Linux and other Unix-based operating systems.
Install Wine on CentOS
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo yum install epel-release sudo yum update
Step 2. Install Development Tools.
Now install required packages for Wine using yum package manager using 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 3. Install Wine.
Next we will download the source packages for WINE:
wget https://dl.winehq.org/wine/source/4.x/wine-4.17.tar.xz tar -Jxf wine-4.17.tar.xz cd wine-4.17
Configure wine using one of the following command based on your system architecture:
### For 32-Bit Systems ### ./configure ### For 64-Bit Systems ### ./configure --enable-win64
Then, run the make and make install command to compile wine source and install it on your system:
make make install
Wine installation successfully completed. Use the following command to check the version of wine installed:
# wine --version wine-4.17
Step 4. Using Wine on CentOS.
For basic usage of wine, check help page:
Congratulation, you have learned how to install and configure Wine on CentOS 7. If you have any question, please leave a comment below.