{"id":20116,"date":"2023-07-31T09:11:33","date_gmt":"2023-07-31T09:11:33","guid":{"rendered":"https:\/\/linuxways.net\/?p=20116"},"modified":"2023-07-31T09:11:33","modified_gmt":"2023-07-31T09:11:33","slug":"how-to-install-wine-on-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-wine-on-debian-12\/","title":{"rendered":"How to Install Wine on Debian 12"},"content":{"rendered":"<p>Wine is a great addition to the family of applications for almost every Linux Distribution. Earlier, it was a very difficult thing to use Windows applications on our Linux Distributions. Other than that, only limited applications used to come for Linux distributions. But because of Wine, now we can use the majority of the applications on Windows.<\/p>\n<h2><strong>Advantages of Wine<\/strong><\/h2>\n<p><strong>Windows Application Compatibility:<\/strong> Wine allows running Windows applications on Linux and macOS systems, providing access to a wide range of software that might not have native alternatives.<\/p>\n<p><strong>No Virtualization Overhead:<\/strong> Unlike traditional virtualization methods, Wine does not require a full Windows operating system, reducing resource overhead and allowing for more efficient use of system resources.<\/p>\n<p><strong>Seamless Integration:<\/strong> Wine integrates Windows applications with the host operating system, enabling file associations and direct access to local files, enhancing user experience and workflow.<\/p>\n<p><strong>Regular Updates and Improvements:<\/strong> Wine is actively developed and updated by a dedicated community, ensuring ongoing support for new Windows software and compatibility improvements.<\/p>\n<p><strong>Cost-Effective Solution:<\/strong> Wine is a free and open-source software, providing a cost-effective solution for running specific Windows applications on non-Windows platforms, eliminating the need for a Windows license.<\/p>\n<h3><strong>Installation process<\/strong><\/h3>\n<p>We can Install and configure Wine easily on every Linux distribution. But here, we will only discuss installing it on Debian 12.<\/p>\n<h3><strong>Update Debian 12<\/strong><\/h3>\n<p>If we update our systems before installing any package or application, it will make sure that we have all the latest packages.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt update <span class=\"sy0\">&amp;&amp;<\/span> upgrade<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"765\" height=\"571\" class=\"wp-image-20117\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-1.png 765w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-1-300x224.png 300w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><\/p>\n<h3><strong>Install i386 Architecture<\/strong><\/h3>\n<p>After the update, we need to install the i386 architecture in our Debian. Because Wine is available for 32-bit architecture.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">--add-architecture<\/span> i386<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"567\" class=\"wp-image-20118\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-2.png 753w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-2-300x226.png 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/p>\n<h3><strong>Download WineHQ key<\/strong><\/h3>\n<p>We have to download and add the WineHQ key for our Debian. First, we will create a directory<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">$ <span class=\"kw2\">sudo<\/span> <span class=\"kw2\">mkdir<\/span> <span class=\"re5\">-pm755<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>keyrings<br \/>\n$ <span class=\"kw2\">sudo<\/span> <span class=\"kw2\">wget<\/span> <span class=\"re5\">-O<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>keyrings<span class=\"sy0\">\/<\/span>winehq-archive.key https:<span class=\"sy0\">\/\/<\/span>dl.winehq.org<span class=\"sy0\">\/<\/span>wine-builds<span class=\"sy0\">\/<\/span>winehq.key<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"565\" class=\"wp-image-20119\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-3.png 763w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-3-300x222.png 300w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"567\" class=\"wp-image-20120\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-4.png 771w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-4-300x221.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-4-768x565.png 768w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/p>\n<h3><strong>Add Wine Repository<\/strong><\/h3>\n<p>We are ready to add the Wine repository in our Debian 12.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">wget<\/span> <span class=\"re5\">-NP<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>sources.list.d<span class=\"sy0\">\/<\/span> https:<span class=\"sy0\">\/\/<\/span>dl.winehq.org<span class=\"sy0\">\/<\/span>wine-builds<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>dists<span class=\"sy0\">\/<\/span>bookworm<span class=\"sy0\">\/<\/span>winehq-bookworm.sources<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"563\" class=\"wp-image-20121\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-5.png 761w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-5-300x222.png 300w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/p>\n<h3><strong>Re-Update the Debian<\/strong><\/h3>\n<p>Again we need to update the Debian one more time.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"754\" height=\"579\" class=\"wp-image-20122\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-6.png 754w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-6-300x230.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/strong><\/p>\n<h3><strong>Install Wine<\/strong><\/h3>\n<p>Everything is set and we can install and configure our Wine now.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> <span class=\"re5\">--install-recommends<\/span> winehq-stable<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"567\" class=\"wp-image-20123\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-7.png 757w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-7-300x225.png 300w\" sizes=\"auto, (max-width: 757px) 100vw, 757px\" \/><\/strong><\/p>\n<h3><strong>Verify the Wine Installation<\/strong><\/h3>\n<p>To verify if Wine got installed in Debian 12 or not, we will check the version of Wine.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">wine<\/span> <span class=\"re5\">-version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"562\" class=\"wp-image-20124\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-8.png 764w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-8-300x221.png 300w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/p>\n<p>We have successfully installed wine in our Debian 12.<\/p>\n<h3><strong>Uninstallation of Wine<\/strong><\/h3>\n<p>It is always a better idea to keep wine installed in our Debian 12. But in case if we have to uninstall it, we can use the command as.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get remove<\/span> <span class=\"kw2\">wine<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"589\" class=\"wp-image-20125\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-9.png 727w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-9-300x243.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/p>\n<p>This command will remove the Wine package from your system.<\/p>\n<p>Additionally, you can run the following command to remove any remaining configuration files related to Wine:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get purge<\/span> <span class=\"kw2\">wine<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"591\" class=\"wp-image-20126\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-10.png 728w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-20116-10-300x244.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Wine application is a handy application for Linux users to use Windows-based applications. Installation of Wine is really easy as we have seen in this article. Sometimes, we might require adding the i386 architecture. Other than that, the installation process is really simple to follow.<\/p>","protected":false},"excerpt":{"rendered":"<p>Wine is a software that allows users to use Windows-based applications on almost any Linux distribution without any problem. <\/p>","protected":false},"author":110,"featured_media":20127,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-20116","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/20116","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\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=20116"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/20116\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/20127"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=20116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=20116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=20116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}