How to Set Up Wine 7.0 to Run Windows Programs on Debian 11 Bullseye
In Windows operating systems, the extensions of setup files are usually exe or msi. But on Linux systems, the setup file of software can be deb, bundle, or any other extension.
If you are using Debian, one of the Linux distributions, on your host computer, if you want to install the Office program that works only compatible with Windows, you can do this with WineHQ software.
Thanks to WineHQ software, you can easily install and run a Windows program on your Linux system. However, you may not be able to install all software on your system with WineHQ due to compatibility issues. So you need to check the database of applications powered by Wine.
For example, you can continue to use the programs you know by installing Adobe Photoshop or Microsoft Office software on your Debian computer.
How to Install Wine
In order to install WineHQ software on your Debian operating system, you need to add the program’s key and repo addresses. After making the necessary settings, you can update the package list and install the latest version of WineHQ software.
After starting your Debian computer, open the terminal and execute the “sudo dpkg –add-architecture i386” command to enable 32 Bit architecture. Then download WineHQ Key and add it to the relevant location.
The repo sources of the Wine application may vary according to the Linux distributions. So you need to add the repo address that is appropriate for the distribution you are using. Execute the commands below in the terminal to download wine-hq.sources and copy it to sources.list.d.
All Wine related dependent packages will use 1,748 MB (1.7 GB) of additional disk space on your system. After making sure that you have free space on your disk, press Y and Enter to confirm the installation of the packages.
After installing dependent packages and Wine, you can check the version of the program with the “wine –version” command from the terminal.
Execute the “winecfg” command in the terminal to view all wine-related settings.
After the WineHQ settings are updated, in the Wine Mono Installer window that opens, click the Install button to install the necessary packages for the NET framework-based applications to work correctly.
When Wine Configuration opens, you can check the stable version you have installed from the About section.
How to Install a Windows Program
After installing Wine on Debian, it is to download and install the setup file of a Windows-compatible program you want to use on your system.
You can download the program more easily with the terminal instead of downloading it from the web page. Open the terminal and navigate to the location where you want to download the program with the “cd ~/Downloads” command. Then download the file to your PC using the link of the program via the wget command.
To run the exe file you downloaded, execute the “wine npp.8.4.2.Installer.x64.exe” command in the terminal.
When the Notepad++ setup wizard opens, click Next to continue.
After reading the license terms of the note-taking application, click I Agree to confirm.
Continue without changing the Notepad++ default installation location.
If you are using this program professionally, you can edit some of its components.
Finally, set whether to create a desktop shortcut and click the Install button.
After installing the Windows compatible Notepad software on your Debian PC, run it.
Click Help / About from the tool menu to verify that you have installed the latest version of Notepad++.
How to Uninstall Wine
If you want to remove Wine from your PC, first back up your files or projects that you have created with the software you use, and then you can completely remove it from your system.
To remove all Wine related packages from your system, execute the “sudo apt remove wine*” command in the terminal and then type your root password and press Enter.
sudo apt remove wine*
After removing all packages belonging to WineHQ, 685 MB of space will be freed on your disk. Press Y and Enter to confirm deleting all dependent packages.
After uninstalling Wine software from your PC, execute the “sudo apt autoremove && sudo apt autoclean” command in the terminal to clean all unnecessary packages.
sudo apt autoremove && sudo apt autoclean
You can see the unnecessary packages of the applications you installed and uninstalled before installing Wine. Press Y and Enter to confirm the deletion of all packages.
Finally, execute the commands below in the terminal to delete the WineHQ source and key that you added to your system’s sources.list file. To confirm that WineHQ has been removed, try checking the software version again and verify that the command does not work.
Hello, I'm Tolga! I am a computer specialist who has been specializing in computer technologies for about 20 years. I provide solutions to problems encountered in many areas such as hardware, system, network, virtualization, server systems, and operating systems, and create relevant content on my website by explaining how to solve these problems. My goal is to be a reliable source of expert, quality, and trustworthy solutions for your computer problems. By following innovations and using the latest technologies, I aim to be successful in my job and provide you with the best service. Don't hesitate to contact me for any questions or curiosity about technology. Have a nice day, stay up to date :)