8 C
Texas
angeloma
Senior Writer and partner

Install Wine 5 on Debian 10

Hi, folks. In this post, I will help you install Wine 5 on Debian 10.

Wine is one of those applications that practically any Linux user knows. Thanks to Wine we can run several Windows applications on Linux. It works as an interpreter that creates an execution layer for programs that can be run in Linux.

Wine is included in the official repositories of almost any distribution. The problem is that Wine’s development is too active (which is very welcome) and they constantly add features and improve the support of the applications and Debian does not update the base packages.

Therefore, if you notice when using Wine that certain programs do not run correctly, then updating Wine may be a solution.

- Advertisement -

So let’s go for it.

Install Wine 5 on Debian 10 Buster

Wine 5 can be installed by adding two repositories. One of them refers to the program itself and the other to the more complete Wine utilities.

So, it opens a terminal and enables the support of the i386 architecture because Wine uses many of these libraries.

:~$ sudo dpkg --add-architecture i386

Then, install some previous packages that we need.

:~$ sudo apt install gnupg2 software-properties-common
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
dirmngr gir1.2-packagekitglib-1.0 gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libappstream4 libassuan0 libglib2.0-bin
libgstreamer1.0-0 libksba8 libnpth0 libpackagekit-glib2-18 libstemmer0d packagekit packagekit-tools pinentry-curses python3-distro-info python3-software-properties
unattended-upgrades
Suggested packages:
pinentry-gnome3 tor parcimonie xloadimage scdaemon gstreamer1.0-tools appstream pinentry-doc bsd-mailx default-mta | mail-transport-agent
The following NEW packages will be installed:
dirmngr gir1.2-packagekitglib-1.0 gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libappstream4 libassuan0
libglib2.0-bin libgstreamer1.0-0 libksba8 libnpth0 libpackagekit-glib2-18 libstemmer0d packagekit packagekit-tools pinentry-curses python3-distro-info
python3-software-properties software-properties-common unattended-upgrades
0 upgraded, 27 newly installed, 0 to remove and 79 not upgraded.
Need to get 10.9 MB of archives.
After this operation, 26.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]
1.- Install required packages
1.- Install required packages

As you can see, I’m using the sudo command. If you want you can enable it with the following tutorial:

How to enable sudo on Debian 10 Buster?

The next step is to add the GPG key to the WineHQ repository.

:~$ wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
OK

And now, yes, proceed to add this repository:

:~$ sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/

Now add the GPG key from the second Wine repository:

:~$ wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key | sudo apt-key add -
OK

And then add the Wine repository:

:~$ echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

Then you have to refresh the APT cache so that the new repositories are accepted by the system.

:~$ sudo apt update

Now install Wine but also the recommended packages that will increase the power of this.

:~$ sudo apt install --install-recommends winehq-stable
2.- Installing Wine 5 on Debian 10
2.- Installing Wine 5 on Debian 10

Also, you can install the development version of Wine which is newer but can bring instability. Don’t do it on a production system.

:~$ sudo apt install --install-recommends winehq-devel

In the end, you can check which version we have just installed:

:~$ wine --version
wine-5.0.1
3.- Wine version
3.- Wine version

And to use it just follow this syntax.

wine [exe-file-path]

So, enjoy it.

Conclusion

Wine is an application that is a veteran within Linux. However, it is quite popular especially with users coming from Windows. It does not always give the expected results but it can work and solve several problems.

Now you know how to install version 5 of this program on Debian 10.

Please share this post and join our Telegram Channel.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article