Wine is an open source compatibility layer that allows you to run Windows applications on Unix-like operating systems such as Linux, FreeBSD, and macOS. Wine is not an emulator, it is an interface. Wine converts Windows system calls to Linux and other Unix-based operating systems used for equivalent POSIX calls. That's why using Wine to run Windows programs on a Linux system.
Wine is not always the best choice for running Windows programs on Linux. Not all Windows applications will run in Wine, and even if they are running, they may not work as usual. The Wine AppDB database contains a list of applications that have been tested and confirmed to work under Wine.
In this tutorial, I will show you how to install the latest Wine Stable on Debian.
- make sure you are logged in as a user with sudo privileges.
- Make sure you can connect to the internet.
- Make sure there is no previous version of Wine installed on your system.
Install Wine on Debian
01、The installation package provided by WineHQ can only be used for x86 architecture,You need to enable i386 architecture on your Debian system.
sudo dpkg --add-architecture i386
02、Download and install the repository key:
wget -nc https://dl.winehq.org/wine-builds/Release.key sudo apt-key add Release.key
03、Add the repository to /etc/apt/sources.list or create a *.list under /etc/apt/sources.list.d/ with the following content:
|For this version:||Add this content to /etc/apt/sources.list:|
|Debian 8 (Jessie)||deb https://dl.winehq.org/wine-builds/debian/ jessie main|
|Debian 9 (Stretch)||deb https://dl.winehq.org/wine-builds/debian/ stretch main|
|Debian 10 (currently Testing) (Buster)||deb https://dl.winehq.org/wine-builds/debian/ buster main|
sudo apt update
05、To install a stable version of wine, execute the following command:
sudo apt install --install-recommends winehq-stable
Note: If the system prompts for missing dependencies during the installation process, please install the dependencies and then perform steps 04, 05 again.
06、Set the wine bin directory to PATH environment to access commands system-wide.
07、Check Wine version,type bollow command:
The output will look something like this:
Run Windows .exe file use wine
Log in to the Debian desktop environment,Download a windows .exe file like PuTTY on your system and open it use following command:
That’s all. You have learned how to install Wine on Debian,If you have any questions or thoughts to share, feel free to leave a comment.