{"id":2668,"date":"2020-12-17T07:42:28","date_gmt":"2020-12-17T07:42:28","guid":{"rendered":"https:\/\/linuxways.net\/?p=2668"},"modified":"2020-12-17T07:42:31","modified_gmt":"2020-12-17T07:42:31","slug":"how-to-install-wine-on-debian-10","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-wine-on-debian-10\/","title":{"rendered":"How to Install Wine on Debian 10"},"content":{"rendered":"<p>There comes a time for Linux users when they need to run some of their favorite Windows applications on their system. However, all applications are not compatible to run in the Linux environment. For this reason, Linux created the Wine compatibility layer which allows you to run actual Windows versions of applications on the Linux system. This post demonstrates how to install Wine on Debian OS.<\/p>\n<p>Note: We have tested the commands and procedure explained in this post on a Debian 10 (Buster) system.<\/p>\n<h2>Installing Wine on Debian<\/h2>\n<p>We will install Wine through the WineHQ repository as it provides the latest version of Wine. Here are the installation steps that you need to follow in order to install Wine on your Debian system.<\/p>\n<h3>Step 1: Enable 32 bit Support<\/h3>\n<p>Enable support for 32-bit packages in your system. Run the following command to do so:<\/p>\n<pre>$ sudo dpkg --add-architecture i386<\/pre>\n<h3>Step 2: Install Dependency<\/h3>\n<p>To install Wine on Debian 10, you will need to first install both the i386 and amd64 \u201clibfaudio&#8221; dependency package. The \u201clibfaudio0\u201d is not included in the WineHQ repository. Therefore, you will need to manually install it as follows:<\/p>\n<p>Download the i386 and amd64 \u201clibfaudio0\u201d packages using the following commands in Terminal:<\/p>\n<pre>$ wget https:\/\/download.opensuse.org\/repositories\/Emulators:\/Wine:\/Debian\/Debian_10\/amd64\/libfaudio0_20.01-0~buster_amd64.deb<\/pre>\n<pre>$ wget <a href=\"https:\/\/download.opensuse.org\/repositories\/Emulators:\/Wine:\/Debian\/Debian_10\/i386\/libfaudio0_20.01-0~buster_i386.deb\">https:\/\/download.opensuse.org\/repositories\/Emulators:\/Wine:\/Debian\/Debian_10\/i386\/libfaudio0_20.01-0~buster_i386.deb<\/a><\/pre>\n<p>Then to install both the packages; run the following command in Terminal:<\/p>\n<pre>$ sudo apt install .\/libfaudio0_20.01-0~buster_amd64.deb<\/pre>\n<pre>$ sudo apt install .\/libfaudio0_20.01-0~buster_i386.deb<\/pre>\n<h3>Step 3: Download and Install the Repository Key<\/h3>\n<p>Now you will have to add the WineHQ repository signing key. Run the following command in Terminal to download the signing key for WineHQ repository:<\/p>\n<pre>$ wget -nc <a href=\"https:\/\/dl.winehq.org\/wine-builds\/winehq.key\">https:\/\/dl.winehq.org\/wine-builds\/winehq.key<\/a><\/pre>\n<p>Then install the key using the following command:<\/p>\n<pre>$ sudo apt-key add winehq.key<\/pre>\n<h3>Step 4: Add WineHQ Repository<\/h3>\n<p>Now add WineHQ repository to your apt sources. There are two methods you can add the WineHQ repository to your system which are as follows.<\/p>\n<p>The first method is to add the WineHQ repository in the <strong>sources.list<\/strong> file. Edit the <strong>\/etc\/apt\/sources.list<\/strong> file<\/p>\n<pre>$ sudo nano \/etc\/apt\/sources.list<\/pre>\n<p>Then add the following lines in it:<\/p>\n<pre>deb https:\/\/dl.winehq.org\/wine-builds\/debian\/ buster main<\/pre>\n<p>The alternative method is to add the repository using the <strong>apt-add-repository<\/strong> command as follows:<\/p>\n<pre>$ sudo apt-add-repository 'deb http:\/\/dl.winehq.org\/wine-builds\/debian\/ buster main'<\/pre>\n<p>You can use any of these methods.<\/p>\n<h3>Step 5: Update apt<\/h3>\n<p>Now update apt sources list to include the newly added WineHQ repository:<\/p>\n<pre>$ sudo apt update<\/pre>\n<h3>Step 6: Installing Wine<\/h3>\n<p>Now that the repository and the its key has been added, you can install Wine on your system. Following is the command to install Wine on your system:<\/p>\n<pre>$ sudo apt-get install --install-recommends winehq-stable<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1119\" height=\"172\" class=\"wp-image-2669\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/installation-of-wine.png\" alt=\"Installation of WIne\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/installation-of-wine.png 1119w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/installation-of-wine-300x46.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/installation-of-wine-1024x157.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/installation-of-wine-768x118.png 768w\" sizes=\"auto, (max-width: 1119px) 100vw, 1119px\" \/><\/p>\n<p>It may take some time as it is also going to install a few additional packages.<\/p>\n<h3>Step 7: Verify Installation<\/h3>\n<p>You can verify if the Wine is installed successfully by running the following command in Terminal:<\/p>\n<pre>$ wine --version<\/pre>\n<p>This command also shows you the installed version of Wine which you can see is <strong>5.0.3<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"347\" height=\"65\" class=\"wp-image-2670\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/version-of-wine.png\" alt=\"Version of Wine \" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/version-of-wine.png 347w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/version-of-wine-300x56.png 300w\" sizes=\"auto, (max-width: 347px) 100vw, 347px\" \/><\/p>\n<h2>Uninstalling Wine<\/h2>\n<p>There may come a time when you no longer need a specific piece of software on your system. If this is the case, you can completely <a href=\"https:\/\/linuxways.net\/de\/debian\/how-to-uninstall-programs-from-debian-10\/\">uninstall<\/a> it from your system.<\/p>\n<p>In order to completely remove Wine along with all its configuration files from your system, run the following command:<\/p>\n<pre>$ sudo apt purge winehq-stable<\/pre>\n<p>Now if you also want to remove the packages that were automatically installed with the Wine, run the following command:<\/p>\n<pre>$ sudo apt autoremove<\/pre>\n<p>In this post, we have demonstrated the step by step process to install Wine on Debian via WineHQ repository. In the end, we have also mentioned how to uninstall Wine, in case you no longer need it on your system. For official documentation, you can visit <a href=\"https:\/\/wiki.debian.org\/Wine\">Wine for Debian<\/a>.<\/p>\n<p>If you are working on Linux Mint OS, visit our post on <a href=\"https:\/\/linuxways.net\/de\/mint\/how-to-install-wine-on-linux-mint-20\/\">How to Install Wine on Linux Mint 20.<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>There comes a time for Linux users when they need to run some of their favorite Windows applications on their system. However, all applications are not compatible to&hellip;<\/p>","protected":false},"author":4,"featured_media":2673,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[17,117],"class_list":["post-2668","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-10","tag-wine"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=2668"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2668\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/2673"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=2668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=2668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=2668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}