Вы находитесь на странице: 1из 18

Introduction

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

Steps For Installing Wine 4.0 Using Source Code

Step 1: Install Development Tools

To compile and build new packages, you need to install fundamental development tools grouped by the name ‘Development Tools’.

To do so, run the following commands:

yum –y 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 dbu 
s-devel fontconfig-devel



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:

yum install wget

2. Now navigate to the /tmp directory:

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

Then, extract the source le using the tar command:

tar –xvf wine-4.0.tar.xz –C /tmp/

Step 4: Install Wine 4.0

Once you extract the le, you can move on to installing.

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

On 64-bit systems, install Wine with:

cd wine-4.0/

./configure --enable-win64


make
make install

Step 5: Verify Installation (Check Wine Version)

The best way to check if you have successfully installed Wine is by verifying the version.

To check Wine version on 32-bit systems use:

wine --version

To check Wine version on 64-bit systems use:

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.

1. First, install the EPEL repository with the command:

yum install epel-release


2. Then, install Wine using:

yum install wine

3. Verify installation was successful by checking the Wine version: 


wine --version

The output should display Wine 4.0 is installed on CentOS 7, as in the image above.

Start Using Wine

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:

On 32-bit systems, enter the following to run Wine:

wine notepad 
wine c:\windows\notepad.exe

On 64-bit systems, run Wine with the command:

wine64 notepad

Wine64 c:\windows\notepad.exe

How to Uninstall Wine

To uninstall Wine 4.0 on CentOS 7, use the command:

yum erase wine

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.

Next, You Should Also Read:

How To Install Wine 4 On Ubuntu 18.04


How to Install Tomcat 9 on CentOS
How To List Installed Packages On CentOS With Yum Or RPM

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.

RECENT POSTS RESOURCES COMPANY

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

   

Вам также может понравиться