How To Run Windows Applications In Linux Using Wine?

How To Run Windows Applications In Linux Using Wine?


This post was last updated on August 1st, 2020 at 09:53 pm

Wine (stands for “Wine Is Not an Emulator”) is a free and opensource compatibility layer that allows a Windows application to run on Unix or BSD like operating systems such as Linux, FreeBSD, Mac, etc. Wine creates its own Windows runtime environment. It translates Windows system calls to POSIX compliant system calls. It recreates directory structures of windows and provides an alternate implementation to system libraries. There is no code emulation or virtualization occurs when running a Windows application under Wine.

Ahead in this article, we will install and use Wine in Linux operating system.

How to Install Wine In Debian/Ubuntu/LinuxMint?

There are various ways to install a package in Linux. To install Wine in Debian and its derivative through the command line. Use the following steps –

Installing Wine from official repository of wine

Official repositories usually provide updated and mainline software. If you want to install it from the official repository of wine use the following commands –

  1. First, check that your system is 32bit or 64bit by using the following command –
    uname -p

    If your system is 32bit it will display x86 else if your system is 64 bit then x86_64 will be displayed.

    If your system is 64bit, enable 32bit architecture by using the given command –

    sudo dpkg --add-architecture i386
  2. Now download public key for wine repository –
    wget -nc
  3. Next, add this key to the system using the below command –
    sudo apt-key add winehq.key
  4. Now add the repository (In Ubuntu 18.04, LinuxMint 19.x) –
    sudo apt-add-repository 'deb bionic main'
  5. Now use one of the following commands to install wine in your system –
    • To install a stable version of Wine run the below command –
      sudo apt install --install-recommends winehq-stable
    • To install the latest development version of Wine run the below command –
      sudo apt install --install-recommends winehq-devel

    If apt command reports for missing dependency binaries or libraries then install them and repeat the above command to install Wine.

  6. Verify the installation of wine by running below command –
    wine --version

How to configure Wine settings?

To configure the wine application settings execute the following command –


First of all, it will prompt you to install Wine Mono. Install it by pressing the on-screen install button.

Now, mono gets installed. Next, it will prompt you for the installation of Wine Gecko, install it also by pressing the install button-

The Installation of Mono and Gecko is a one-time process. After these get installed, You can close the wine configuration window by clicking on the ok button.

How to install a Windows application in Linux

Wine becomes more useful when there is a Windows app that doesn’t have a Linux equivalent. In this case, you can install that application on Linux by using wine. Suppose you want to install notepad++ application in your system then first you will have to download .exe file and then either double click on that file or right-click on it and then click on open with wine windows program loader. Now wine will start loading the notepad++ installer.

Now ahead the installation process will be very similar to that you see on the Windows operating system.

Wine Application Database

This is not necessary that an application for windows works perfectly on Linux. Wine provides its own database of applications. These can be run on Unix like operating systems by using Wine. The softwares on wine application database (AppDB),  based on their compatibility are rated into three categories –

  • Platinum –  These applications run flawlessly out of the box
  • Gold – These applications run with some modification necessary
  • Silver – These applications run with minor issues that do not affect its usages

You may find some applications listed as garbage that means they do not install or run.

Note: Remember that not every Windows app will run under Wine. The best thing to do is before installing an application you should check the current status of that app. This will give you a basic idea that how it will work on your system.


Now, I hope this article is useful to you. If you want to say something on this topic then write us in the comments below.

Previous What Is PPA And How To Add Or Remove It In Ubuntu Using Command Line?
Next How To Setup Nginx Server In Linux?

About author

You might also like

Linux Topics 0 Comments

How to Download, Extract and update the Linux Kernel source

This post was last updated on December 1st, 2020 at 05:38 pmWhen you are starting to learn Linux development or Device driver development, then the first thing you need is

Linux Topics 0 Comments

How To Install PuTTY In Linux And Use It As An SSH Client?

This post was last updated on August 1st, 2020 at 10:12 pmEarlier I published how to connect to a Linux server using SSH using the command line. This article describes

Linux Terminal 0 Comments

How To Install And Work With Nano Text Editor In Linux?

This post was last updated on August 1st, 2020 at 10:12 amNano is a simple and user-friendly text editor mostly used on Unix like operating systems. It emulates the Pico


No Comments Yet!

You can be first to comment this post!

Leave a Reply