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,648FansLike
360FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to install CMake on Ubuntu

CMake is a cross-platform free and open-source software tool designed to build, test, and package the software. CMake uses a simple platform and compiler-independent configuration files to control the software compilation process.

How to install Lightworks on Ubuntu

Even though Linux may not get a native installer of video editing software like Adobe Premiere or Final Cut Pro, that doesn't mean there are no industry standards tools available. Lightworks is non-linear editing (NLE) video mastering app for Windows, Linux, and macOS. Installing it on Ubuntu is simple due to deb package availability.

How to install DaVinci Resolve on Fedora

Davinci Resolve is a professional application used for color correction, video editing, visual effects, and motion graphics. It is one of the extensively used software by movie industries located in Hollywood.

The 10 Best Programming Languages for Hacking

One of the significant entities we have in Cyber Security is Ethical Hacking (ETH). It is the process of detecting and finding flaws or vulnerabilities in a system that a hacker would exploit.

5 Ways to Open a Terminal in Ubuntu

Even though Ubuntu supports many applications with amazing Graphical User Interfaces (GUI), there are always reasons why users prefer using the Terminal to perform different tasks.

How to install Wine on Fedora Workstation

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.

MUST READ

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.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

10+ Best Python IDEs for Linux

Python programming language is applied in so many areas of computer technology, i.e., Scripting, GUI development, Website development, Artificial Intelligence (AI), Machine Learning, Data Science, Computer Networking, and Network Automation, and Cyber Security.

CopyQ – Advanced clipboard manager for Linux

We have all had that moment when we copied a text, but we first needed another one, and in the process, lost the first one. If you're lucky, you can get it back quickly with a bit of work.

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.

Scrcpy – Control Android devices from a Linux desktop

Scrcpy is a desktop program that can be used to access your Android phone's system and interface through your computer. The app is quite convenient, and some of its best features are highlighted below.