Wine Installation in Linux

WINE

Wine stands for “Wine is not an emulator” and it is an open source software which allows Linux, Mac, FreeBSD, and Solaris users to run Windows applications without a copy of Microsoft Windows. Wine is not a virtual machine or emulator it just provides the binary compatibility. In this artical we will know about the wine installation in Linux.

First check is there any wine package is installed in our machine by using the following command

[[email protected] ~]# rpm -qa|grep wine

If there is any wine version is already installed remove it by using yum remove wine command to avoid some problems when the time of installation and in the running of applications.

Before we proceeding to install wine package we need to install some prerequisites by using the following command

[[email protected] ~]# yum install libX11-devel freetype-devel zlib-devel libxcb-devel

The sample output is like

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
Resolving Dependencies
--> Running transaction check
---> Package freetype-devel.x86_64 0:2.4.11-11.el7 will be installed
---> Package libX11-devel.x86_64 0:1.6.3-2.el7 will be installed
--> Processing Dependency: pkgconfig(xproto) for package: libX11-devel-1.6.3-2.el7
.x86_64
--> Processing Dependency: pkgconfig(kbproto) for package: libX11-devel-1.6.3-2.el7
.x86_64
---> Package libxcb-devel.x86_64 0:1.11-4.el7 will be installed
--> Processing Dependency: pkgconfig(xau) >= 0.99.2 for package: libxcb-devel-1.
11-4.el7.x86_64
---> Package zlib-devel.x86_64 0:1.2.7-15.el7 will be installed
--> Running transaction check
---> Package libXau-devel.x86_64 0:1.0.8-2.1.el7 will be installed
---> Package xorg-x11-proto-devel.noarch 0:7.7-12.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================
 Package                    Arch         Version       Repository  Size
=========================================================================
Installing:
 freetype-devel             x86_64       2.4.11-11.el7     base    356 k
 libX11-devel               x86_64       1.6.3-2.el7       base    980 k
 libxcb-devel               x86_64       1.11-4.el7        base    1.1 M
 zlib-devel                 x86_64       1.2.7-15.el7      base    50 k
Installing for dependencies:
 libXau-devel               x86_64       1.0.8-2.1.el7     base    14 k
 xorg-x11-proto-devel       noarch       7.7-12.el7        base    281 k

Transaction Summary
=========================================================================
Install  4 Packages (+2 Dependent packages)

Total download size: 2.7 M
Installed size: 7.6 M
Is this ok [y/d/N]: y
Downloading packages:
 (1/6): libXau-devel-1.0.8-2.1.el7.x86_64.rpm               |  14 kB   00:02
(2/6): freetype-devel-2.4.11-11.el7.x86_64.rpm             | 356 kB   00:05
(3/6): zlib-devel-1.2.7-15.el7.x86_64.rpm                  |  50 kB   00:01
(4/6): xorg-x11-proto-devel-7.7-12.el7.noarch.rpm          | 281 kB   00:04
(5/6): libX11-devel-1.6.3-2.el7.x86_64.rpm                 | 980 kB   00:10
(6/6): libxcb-devel-1.11-4.el7.x86_64.rpm                  | 1.1 MB   00:14
-------------------------------------------------------------------------
Total                                              188 kB/s | 2.7 MB  00:14
Running transaction check
Transaction test succeeded
Running transaction
  Installing : xorg-x11-proto-devel-7.7-12.el7.noarch                       1/6
  Installing : libXau-devel-1.0.8-2.1.el7.x86_64                            2/6
  Installing : libxcb-devel-1.11-4.el7.x86_64                               3/6
  Installing : zlib-devel-1.2.7-15.el7.x86_64                               4/6
  Installing : freetype-devel-2.4.11-11.el7.x86_64                          5/6
  Installing : libX11-devel-1.6.3-2.el7.x86_64                              6/6
  Verifying  : zlib-devel-1.2.7-15.el7.x86_64                               1/6
  Verifying  : freetype-devel-2.4.11-11.el7.x86_64                          2/6
  Verifying  : libxcb-devel-1.11-4.el7.x86_64                               3/6
  Verifying  : xorg-x11-proto-devel-7.7-12.el7.noarch                       4/6
  Verifying  : libX11-devel-1.6.3-2.el7.x86_64                              5/6
  Verifying  : libXau-devel-1.0.8-2.1.el7.x86_64                            6/6

Installed:
  freetype-devel.x86_64 0:2.4.11-11.el7    libX11-devel.x86_64 0:1.6.3-2.el7
  libxcb-devel.x86_64 0:1.11-4.el7         zlib-devel.x86_64 0:1.2.7-15.el7

Dependency Installed:
  libXau-devel.x86_64 0:1.0.8-2.1.el7  xorg-x11-proto-devel.noarch 0:7.7-12.el7

Complete!
[[email protected] ~]#

After the installation of that change the path to /usr/src folder and then  Download the wine package by using as follows

[[email protected] ~]# cd /usr/src
[[email protected]st src]# wget http://dl.winehq.org/wine/source/1.8/wine-1.8.3.tar.bz2

wine download

We can also get the latest version of wine from their official site

After the successful download extract the wine package by using tar command.

 [[email protected] src]# tar -xjvf wine-1.8.3.tar.bz2

Then change the path to the wine directory

[[email protected] src]#cd wine-1.8.3/

Now run the configure script

For 32-Bit Systems:
# ./configure

For 64-Bit Systems:
# ./configure  --enable-win64

We can find 32 bit or 64 bit by using arch command

Sample output:

wine configure sample output

After that run the command make

[[email protected] wine-1.8.3]# make

wine build

Now run the command make install as follows

[[email protected] wine-1.8.3]# make install

After the installation completes check version by using as follows

On 32-Bit Systems
# wine --version

On 64-Bit Systems
# wine64 –version

 

When you first time try to run the wine commands it shows the dialogue box to install wine mono installer as shown below

wine mono

wine vesrion

Now we can open the windows application notepad in the Linux by using the wine as follows
For 32-bit systems

[[email protected] ~]# wine notepad

For 64-bit systems

[[email protected] ~]# wine64 notepad

wine notepad

We can get the wine compatibility application list from here, Enjoy the windows programs and games in Linux. Have a fun!

  • Mihamina Rakotomandimby

    Please use “root” account only when needed. The “./configure” and “make” steps should run fine with a non-root user. Thank you.

  • It is way faster to install the playonlinux package and add a program. It has grat scripts to select the latest version or whatever work. 1.9.11 (staging) now in Manjaro is the default wine, and (staging) solves all those add ons you usually need.