How To Install Wine 4.0 On CentOS (Tutorial With Screenshots)
How To Install Wine 4.0 On CentOS (Tutorial With Screenshots)
Wine is free software that allows you to run Windows applications on other systems, including Linux, Mac, Solaris, and FreeBSD.
You can download this open-source software using the source code or from the EPEL repository.
In this tutorial, learn how to install Wine 4.0 on CentOS 7 using the source code or EPEL Repository.
Prerequisites
Access to a terminal window
Access to root or a user account with sudo privileges
The yum package manager, included by default
To compile and build new packages, you need to install fundamental development tools grouped by the name ‘Development Tools’.
Step 2: Download Wine 4.0
Next, you need to download Wine source le using the wget command.
1. If you do not have wget , you can easily download it by typing the command:
cd /tmp
3. Download the source le for Wine 4.0 with the following command:
wget https://dl.winehq.org/wine/source/4.0/wine-4.0.tar.xz
Step 3: Extract Wine
1. Wine uses different applications depending on whether you have a 32-bit or 64-bit OS. If you are not sure which one is running on
your system, use the following command to nd out:
lscpu
2. Find the information in the CPU op-mode(s) line. In the example seen in the image below, the OS supports both 32-bit and 64-bit
applications.
3. Next, you need to compile and build the Wine installer. As the root user, type in the commands that apply for the system you are
using. If you have both CPU modes, use the instructions for the 64-bit system.
On 32-bit systems, run the following commands:
cd wine-4.0/
./configure
make
make install
cd wine-4.0/
./configure --enable-win64
make
make install
The best way to check if you have successfully installed Wine is by verifying the version.
wine --version
wine64 --version
The output should show you that you have Wine 4.0, as in the image below:
Installing Wine With EPEL Repository
It only takes a couple of steps to install Wine 4.0 from the EPEL repository.
2. Then, install Wine using:
The output should display Wine 4.0 is installed on CentOS 7, as in the image above.
To start using Wine, include the executable program in the path you type in the terminal. The command to run Wine will differ based
on whether you have a 32-bit or 64-bit system:
wine notepad
wine c:\windows\notepad.exe
wine64 notepad
Wine64 c:\windows\notepad.exe
Type y to con rm you want to remove the package and hit Enter.
Conclusion
After reading this article, you should have successfully installed Wine 4.0 on CentOS. Now you can run any Windows program on your
Linux system.
Author
So ja Simic
So ja Simic is an aspiring Technical Writer at phoenixNAP. Alongside her educational background in teaching and writing, she has had
a lifelong passion for information technology. She is committed to unscrambling confusing IT concepts and streamlining intricate
software installations.
CONNECT
How To Install and Use PHP Composer on Ubuntu 16.04 HOW-TO ABOUT US
How To Set Up Nginx Virtual Host (Server Blocks) on CentOS RESOURCE GITHUB EVENTS
7
How to Create New MySQL Account and Grant Privileges SECURITY BLOG PRESS
CAREERS CONTACT US
© 2019 Copyright phoenixNAP | Global IT Services. All Rights Reserved. | Privacy Policy | Sitemap