This guide will cover the installation Wine 4 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 4, check Wine 4 release and new features article. This article will discuss the easy installation of Wine 4 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:
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
You should receive “OK” in the output.
Add the Wine repository by running the following command:
sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/
The command will add a line to /etc/apt/sources.list file.
Step 3: Install Wine 4 on Debian 10/9
After configuration of the APT repository, the final step is the actual installation of Wine 4 on Debian 10/9.
$ sudo apt update Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://security.debian.org/debian-security buster/updates InRelease Hit:3 http://deb.debian.org/debian buster InRelease Get:4 http://security.debian.org/debian-security buster/updates/main i386 Packages [1,132 B] Get:5 http://deb.debian.org/debian buster/main i386 Packages [7,862 kB] Hit:6 http://dl.google.com/linux/chrome/deb stable Release Get:8 https://dl.winehq.org/wine-builds/debian buster InRelease [6,258 B] Get:9 https://dl.winehq.org/wine-builds/debian buster/main amd64 Packages [541 kB] Get:10 https://dl.winehq.org/wine-builds/debian buster/main i386 Packages [576 kB] Get:11 http://deb.debian.org/debian buster/contrib i386 Packages [47.1 kB] Get:12 http://deb.debian.org/debian buster/non-free i386 Packages [76.3 kB] Fetched 9,110 kB in 13s (702 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date.
Then install Wine from Stable branch:
sudo apt install winehq-stable
If you’re interested in Development branch, run:
sudo apt install winehq-devel
And for staging, use:
sudo apt install winehq-staging
After installation. verify version installed.
$ wine --version wine-4.0.1
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 https://notepad-plus-plus.org/repository/7.x/7.7/npp.7.7.Installer.exe $ 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.