How to install Wine on Fedora Workstation

Did you want to run a Microsoft Windows-based application on your Fedora workstation? While the Linux community works hard to provide you free and open-source app for the most common tasks you want to do on your Fedora workstation, it's not surprising when you come across situations where an app is only made for Windows. So you got no other options than to use it on your Fedora system.

Linux distributions are becoming more and more popular every day, and Fedora Workstation is not left behind. This popularity brings forth the need to run Windows applications on Linux distros like Fedora. Windows has quite some excellent Software that is not available for Linux.

Unfortunately, compatibility issues prevent us from installing Windows ‘.exe.’ files on Unix or Linux systems. However, this doesn’t mean it’s impossible. You can do so using WineHQ.

What is WineHQ?

Wine is a free and Opensource compatibility layer that enables users to run Windows applications and software in a Unix or Linux environment. Unlike virtual machines or emulators, Wine translates application calls that would be recognized by the Windows system so that the app can run in a near-native environment.

Wine to run windows applications on Linux
Wine to run windows applications on Linux

This way, one can run software meant for Windows systems without significant memory or performance issues. In other cases, some Wine installed programs perform much better on Linux than on the Windows environment.

Wine Features

  • supports 64-bit, 32-bit, 16-bit (Windows 9x/NT/2000/XP/Vista/7/8/10, and Windows 3.x) libraries, and DOS programs
  • It supports Win32 memory compatibility, threads and proce3sses, and exception handling.
  • supports the playing of DirectX games on Linux. It supports the running of OpenGL and Vulkan games and applications
  • has excellent support for system sound drivers like OSS and ALSA
  • It supports the use of external devices such as modems, serial devices, USB drives, and Winsock TCP/IP networking.
  • supports several input devices, including keyboard and graphical tablets
  • It comes with the ASPI interface (SCSI) that enables the use of Scanners, DVD/CD writer, and other devices.
  • supports multilingual keyboard input methods
  • comes with several sample programs like internet explore after a fresh installation

Since Wine is an open-source program that is updated from time to time, you can find more added features on the official wine_features page.

Install WineHQ on Fedora Workstation

In this article, we will give you a step by step procedure of how to install WineHQ on your Fedora workstation. Our distribution of choice is Fedora 31; however, we will still show you to install WIneHQ for Fedora 32 and Fedora 29.

The user requirements for this tutorial include:

  • An active internet connection.
  • Elevated privileges to perform the installation. Therefore, you will need to know the root password.

Step 1. Ensure your system is up to date by executing the commands below on the Terminal.

sudo dnf clean all
sudo dnf update

Update your Fedora system
Update your Fedora system

Step 2. Now, you will need to add the WineHQ repository in our system. Select the repository that matches your Fedora version from the options below.

Step 3. Once we have added the WineHQ repository in our system, we can now proceed to install WIneHQ. Choose any of the releases below if you have no idea which package to run, execute the stable branch.

  • Stable branch:
sudo dnf install winehq-stable
  • Development branch
sudo dnf install winehq-devel
  • Staging branch.
sudo dnf install winehq-staging

For this post, I will use the stable branch.

Install WineHQ in Fedora
Install WineHQ in Fedora

Step 4. Once the installation is complete, verify using the ‘–version’ command, as shown below.

wine --version

Verify WIne installation
Verify WIne installation

Install a Windows program with Wine

Now let’s give you a tip on how to install Windows programs in Fedora Workstation using Wine. The test program we will use is PowerISO. It’s a Windows program used for creating a bootable installation USB drive.

Step 1. Navigate to the directory containing your Windows ‘.exe.’ file. Right-click on it and choose the option, Open with “Wine Windows Program Loader.”

Open with WIne Program Loader
Open with WIne Program Loader

Step 2. The PowerISO license agreement page will open after some time.

PowerISO Licence Agreement page
PowerISO Licence Agreement page

Click “I Agree” to continue.

Step 3. On the next Window, you will need to select the installation location. By default, Wine installs all programs in the C:/ directory. It would be best if you left the installation path as indicated.

Choose PowerISO install location
Choose PowerISO install location

Click “Install” to start the installation process.

Step 4. Once the installation is complete, you will see a message that it was successful. Click “Next.” On the next window that appears, do not alter any information there, click “Close.”

Installation completed succefully
Installation completed successfully

Now, we have successfully installed PowerISO in Fedora Workstation using WineHQ.

Step 5) To launch the program, navigate to the Desktop, and you should see a file called PowerISO or PowerISO.desktop. If its the ‘PowerISO’ file, double click on it to open the program. If its ‘PowerISO.desktop’ as shown below, you will use the ‘gtk-launch’ command to launch it.

PowerISO_desktop file
PowerISO_desktop file

Note, to use the gtk-launch command, we need to copy the PowerISO.desktop file in the /usr/share/applications‘ directory.Once you have done, execute the command below on the Terminal.

gtk-launch PowerISO.desktop

The PowerISO main window should now open.

PowerISO main window
PowerISO main window

That’s how easy it is to install a Windows program on Fedora using WineHQ.

Uninstall a program installed with WineHQ on Fedora

Suppose you want to uninstall a program you installed with WineHQ on your Fedora system, it’s a relatively straightforward process.

Step 1. Open the Terminal and execute the command below.

wine uninstaller

This command will open the Wine Add/Remove programs window, as shown below.

Wine Add-Remove programs window
Wine Add-Remove programs window

Step 2. Select the program you wish to uninstall and click the “Remove” button. In this case, we want to uninstall PowerISO, by clicking “Remove,” PowerISO uninstallation will open. See the image below.

Uninstall PowerISO using WIneHQ
Uninstall PowerISO using WIneHQ uninstall window

Uninstall WineHQ from Fedora Workstation

From my experience working with WineHQ on Fedora Workstation, using the ‘–purge‘ or ‘remove‘ command does not entirely remove WineHQ from your system.

If you wish to remove Wine and all its components, execute the commands below in order before running the ‘–purge’ and remove command. It’s important to note that you will lose all data, including the programs installed using WineHQ.

cd $HOME
sudo rm -r .wine
sudo rm .config/menus/applications-merged/wine*
sudo rm -r .local/share/applications/wine
sudo rm .local/share/desktop-directories/wine*
sudo rm .local/share/icons/????_*.xpm

Remove_Unistall WineHQ on Fedora Workstation
Remove_Unistall WineHQ on Fedora Workstation

Some of these commands might raise errors like ‘directory not found,’ however, this shouldn’t be a bother. Continue executing every single command. When done, now run the ‘–purge’ and ‘remove’ command below.

sudo apt-get --purge remove wine

Conclusion

WineHQ is a program that saves you the stress of running Virtual machines or dual booting only to have Windows applications running on your system. After a successful installation, visit the Wine Application Database webpage to see some of the Windows software you can install and run on Fedora.

Arun Kumar
Arun did his bachelor in computer engineering and loves enjoying his spare time writing for FOSS Linux. He uses Fedora as the daily driver and loves tinkering with interesting distros on VirtualBox. He works during the day and reads anything tech at night. Apart from blogging, he loves swimming and playing tennis.

1 COMMENT

  1. Great guide. Thank you for your amazing work on FossLinux!
    Could you please make a guide about installing Dart SDK on fedora?

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,419FansLike
377FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

Basics of Working with the SQLite Database in Python

A database is one of the most useful and popular files for storing data; they can be used to store any kind of data, including text, numbers, images, binary data, files, etc. SQLite is a relational database management system based on the SQL language. It is a C library, and it provides an API to work with other programming languages, including Python. It does not require a separate server process to be run as needed in large database engines like MySQL and Postgresql.

5 Ways to Check the Linux Version

When most people talk of Linux, they are always referring to a Linux distribution. However, this is not the case. Linux itself is a kernel which acts as a bridge between user applications and the hardware. When we talk of a Linux distribution, we refer to an operating system developed from the Linux kernel. A distribution comes with a package manager, pre-installed applications, a Desktop Environment, and several more features.

Getting Started with Linux Operating System

The Linux operating system brings forth a vibrant mix of features and security, making it the best alternative to macOS or Windows operating systems. In this post, we will give you a master guide on Getting started with Linux systems - taking you from a complete beginner to a level where you can begin testing the various Linux distributions available with much ease.

How to Create a Comprehensive Mail Server on Ubuntu

Postal is a free and open-source mail server used to send and receive emails. It comes loaded with tons of excellent features and functionalities, making it extremely popular among large organizations as well as in enterprise settings.

The 10 Best Linux Performance Monitoring Tools

Do you want to monitor the performance of your Linux system? Are you looking for some powerful performance monitoring tools to help you out? If you agree, it's your day as we have put together a detailed list of the ten best Linux performance monitoring tools.

How to Boot your Windows or Linux PC from a USB Drive

Sometime back, the process of installing an operating system required users to pop a bootable media disk into their DVD or CD drive and use it to boot the PC. But times have changed. Nowadays, the most common way of installing an OS is booting from a USB drive. The use of USB drives is further propelled by the current production of slim and lightweight laptops with no support for DVD/CD drives.

MUST READ

Buyers who wish to go for a machine that is based on Linux often show interest in Chromebooks due to the form factor and extended battery life capabilities. Although ChromeOS power these machines, users can still miss out on a more genuine Linux experience. For those who happen to agree, the new Lemur Pro by System76 might get some heads turning.
Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.

5 ways to send emails using the command-line in Linux

Did you master using the command-line in Linux? There is no limit to what one can do via the Linux Terminal. One of such things we are going to discuss today are methods of sending an email using the command-line.

Top 20 must-have apps for your Ubuntu PC

OK, this one is going to be a long one, so grab a cup of coffee and scroll through the best apps that we think are must-have for your Ubuntu PC. We have hand-picked each one of these considering the most common categories that suit an average Linux user.

The 6 Best Download Managers for Fedora

It is a well-known fact that using download managers can help improve download speeds as compared to web browsers. Apart from the inbuilt download manager wget on Fedora, just as on any distribution that is based on GNU/Linux package, there are more options to explore.

5 Best Ways to Free up Hard Disk Space in Ubuntu

Hard disk space can easily get filled up with cached package files, old kernels, and other obsolete files that occupy unwanted hard disk space. Here are top five best and safer ways to clean and free up hard disk space in Ubuntu. We show you Terminal and GUI way of cleaning up system.