How to install wine on Linux

Home > Search > How-to
  by

If using a Graphical desktop environment, such as Gnome, KDE, or Mint, Software Manager can be used to install Wine.

 

If using a text only interface, enable 32-bit packages:

[root@server1 ~]# dpkg --add-architecture i386

 

Install the key to sign the package:

[root@server1 ~]# wget https://dl.winehq.org/wine-builds/Release.key[root@server1 ~]# apt-key add Release.key

 

Add support for HTTP apt sources:

[root@server1 ~]# apt-get install apt-transport-https ca-certificates

 

Download the package:

[root@server1 ~]# wget http://dl.winehq.org/wine/source/1.8/wine-1.8.3.tar.bz2

 

Uncompress the package:

[root@server1 ]# bzip2 -d wine-<version>.tar.bz

 

Extract the tar archive:

[root@server1 ]# tar -xvf wine-<version>.tar

 

Enter the wine folder:

[root@server1 ]# cd wine-<version>

 

Install the dependencies needed by wine:

[root@server1 ]# apt-get install flex
[root@server1 ]# apt-get install bison
[root@server1 ]# apt-get install libx11-dev

 

Install Wine.

[root@server1 ]# ./tools/wineinstall

 

To test this, let's download Notepad++ for Windows from https://notepad-plus-plus.org/. Let's install Notepad++:

[root@server1 ]# wine /home/root/npp-<version>.exe

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments