How to Install Wine on Debian 10

Install Wine on Debian 10

In this article, we will have explained the necessary steps to install and configure Wine on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Wine is an open source software that allows you to run Microsoft Windows applications on Linux. Wine stands for Wine Is Not an Emulator. And it’s not, it is an interface that translates Windows system calls into equivalent POSIX calls used by Linux and other Unix-based operating systems.

Install Wine on Debian

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo apt update

Step 2. Enable 32 bit architecture.

You need to enable i386 architecture on your Debian system. Also, import the GPG key to your system by which the wine packages are signed:

sudo dpkg --add-architecture i386 
wget -qO - | sudo apt-key add -

Next, enable Wine apt repository in your system based on your operating system and version:

sudo apt-add-repository

Step 3. Install Wine.

After configuration of the APT repository, the final step is the actual installation of Wine 4 on Debian 10:

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

Then, set the wine bin directory to PATH environment to access commands system-wide:

export PATH=$PATH:/opt/wine-stable/bin

Wine installation successfully completed. Use the following command to check the version of wine installed:

# wine --version 

Step 4. Using Wine on Debian.

For basic usage of wine, check help page:

wine --help

Congratulation, you have learned how to install and configure Wine on Debian 10 Buster. If you have any question, please leave a comment below.