This guide will cover the installation Wine 5 on Debian 10 / Debian 9 workstation. Wine is an open source software that allows you to run Microsoft Windows applications on Linux. By leveraging its Winelib library, you can compile Windows applications to help with porting them to Unix-like systems.

If you want to know about new features in Wine 5, check Wine 5 release and new features article. This article will discuss the easy installation of Wine 5 on Debian 10/9.

Step 1: Enable 32 bit architecture

If you’re running a 64-bit system, enable support for 32-bit applications.

sudo dpkg --add-architecture i386 

The command above won’t return any output.

Step 2: Add WineHQ repository

We will pull the latest Wine packages from WineHQ repository that is added manually.

First, import GPG key:

sudo apt update
sudo apt -y install gnupg2 software-properties-common
wget -qO - | sudo apt-key add -

You should receive “OK” in the output.

Add the Wine repository by running the following command:

sudo apt-add-repository

The command will add a line to /etc/apt/sources.list file.

Step 3: Install Wine 5 on Debian 10/9

After configuration of the APT repository, the final step is the actual installation of Wine 5 on Debian 10/9.

Add Wine OBS repository:

Debian 10:

wget -O- -q | sudo apt-key add -    
echo "deb ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

Debian 9:

wget -O- -q | sudo apt-key add -    
echo "deb ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

Then install Wine from Stable branch:

sudo apt update
sudo apt install --install-recommends winehq-stable

If you’re interested in Development branch, run:

sudo apt install --install-recommends winehq-devel

And for staging, use:

sudo apt install winehq-staging

After installation. verify version installed.

$ wine --version 

Step 4: Using Wine on Debian

For basic usage of wine, check help page.

$ wine --help

Example below is used to run Notepad++ editor on Linux.

$ cd ~/Downloads
$ wget
$ wine ./npp.7.7.Installer.exe

Follow installation prompts like for any other Windows application.

Thanks for referring to our article on how to Install Wine on Debian.

Other guides.

How To Install Google Chrome Web Browser on Debian

How to Install PostgreSQL on Debian 10

Bind vs dnsmasq vs PowerDNS vs Unbound