How to Install Wine on Fedora Linux

Last updated Sunday, February 22, 2026 10:58 am Joshua James 15 min read 4 comments

Wine is usually the quickest way to run Windows software on Fedora Linux without carving up your system for dual-booting or babysitting a full virtual machine. If you need to install Wine on Fedora Linux for a launcher, legacy business app, or a Windows-only utility, Wine translates Windows API calls so many programs can run directly on your Fedora desktop. Not every app works perfectly, but the right setup avoids a lot of trial-and-error.

Fedora gives you two sane options: the default repositories for simpler maintenance, or the WineHQ repository when you want newer upstream builds. The guide compares both paths first, then covers winecfg, Wine Mono, Winetricks, and Fedora-specific failure points so you can get Windows applications running without digging through forum threads.

Install Wine on Fedora Linux

Fedora offers two primary Wine installation paths. The comparison table below helps you choose between Fedora’s AppStream packages and the upstream WineHQ repository before you start the installation steps.

MethodChannelVersionUpdatesBest For
DNF AppStreamFedora ReposStable releaseAutomatic via dnf upgradeMost users who want reliable, tested packages with security updates
WineHQ RepositoryWineHQStable, Staging, or DevelopmentManual via dnf upgradeAdvanced users needing latest features or testing experimental builds

For most users, the DNF AppStream method is recommended because it integrates with Fedora’s update system and receives testing from the Fedora QA team. Only use WineHQ if you specifically need features unavailable in the stable release or want to test development builds.

Prepare Fedora Before Installing Wine

Preparing your system before installing Wine reduces potential conflicts with existing packages and ensures dependencies install correctly. Follow these steps to verify your system is ready.

Update System Packages

Update your system packages to ensure you have the latest security patches and bug fixes before installing Wine.

To update your system, search for “Terminal” in Activities and run the following command:

sudo dnf upgrade --refresh

If your user account does not have sudo privileges yet, set that up first with this guide: How to Add a User to Sudoers on Fedora.

The command above refreshes repository metadata and upgrades all packages to their latest versions. For faster DNF operations, consider optimizing DNF performance on Fedora.

Verify if Wine is Already Installed

Before proceeding, check whether Wine is already installed on your system. Verifying first avoids redundant installations and ensures you know which version of Wine (if any) is currently available.

Run the following command in your terminal:

wine --version

If Wine is installed, you’ll see output similar to:

wine-11.0 (Staging)

Conversely, if Wine is not installed, you’ll see a command not found error, confirming you can proceed with the installation.

Method 1: Install Wine from Fedora Repositories (AppStream)

The AppStream method provides Fedora-tested stable packages with automatic security updates and suits most users who prioritize reliability over bleeding-edge features.

Install the Core Wine Package

To install the core Wine package, open your terminal and run the following command:

sudo dnf install wine

As a result, your Fedora system gains the ability to run Windows applications directly.

Add 32-bit Application Support (Optional)

Many older Windows applications and games are designed for 32-bit architecture. Adding 32-bit support ensures these applications run correctly on your Fedora system.

To enable 32-bit support, execute the following command:

sudo dnf install wine.i686

In particular, this step benefits users running legacy applications or games that are not available in 64-bit versions.

Verify Wine Installation

After installation, confirm that Wine is correctly installed by checking its version. In your terminal, type:

wine --version

You should see output confirming the installed version:

wine-11.0 (Staging)

Fedora’s package may report (Staging) in the version output. That is normal for Fedora’s Wine build and does not mean you installed the WineHQ staging channel.

When the command outputs a version number, Wine is successfully installed. Otherwise, review the installation steps above.

Method 2: Install Wine from the WineHQ Repository on Fedora

The WineHQ repository provides access to stable, staging, and development releases directly from upstream and suits advanced users who need the latest features or want to test experimental builds.

Enable the WineHQ Repository

First, add the official WineHQ repository to your Fedora system. The following command automatically detects your Fedora release version:

sudo dnf config-manager addrepo --from-repofile=https://dl.winehq.org/wine-builds/fedora/$(rpm -E %fedora)/winehq.repo

If you rerun this command and dnf reports that /etc/yum.repos.d/winehq.repo already exists, rerun it with --overwrite to refresh the repository file.

The $(rpm -E %fedora) macro automatically expands to your current Fedora version (43, 42, 41, etc.), ensuring you always use the correct repository.

Next, verify the repository was added successfully:

dnf repo list --all | grep -i winehq

You should see output confirming the repository is enabled:

WineHQ                WineHQ packages                                     enabled

Before installing WineHQ packages, remove any Wine builds from Fedora’s AppStream repositories to avoid mixing binaries and dependencies.

Clean out existing Fedora Wine packages if you installed them earlier:

sudo dnf remove wine wine.i686

After removal, refresh metadata so dnf pulls WineHQ builds only:

sudo dnf upgrade --refresh

Select a WineHQ Release Channel

WineHQ offers three versions: stable, staging, and development. Choose the one that best suits your needs:

The install commands below use --allowerasing so dnf can replace any remaining Fedora Wine components such as wine-core. If dnf removes winetricks during this switch, reinstall it later with sudo dnf install winetricks.

Install WineHQ Stable Release

The stable release is the most reliable option for general use. To install it, run:

sudo dnf install winehq-stable --allowerasing

Install WineHQ Staging Release

Alternatively, for beta features and pre-release updates, use the staging release:

sudo dnf install winehq-staging --allowerasing

Install WineHQ Development Release

Finally, to experiment with the latest features, the development release is available:

sudo dnf install winehq-devel --allowerasing

Verify WineHQ Installation

After installation, verify the selected WineHQ build. On Fedora, WineHQ installs binaries under /opt/wine-stable/bin, /opt/wine-staging/bin, or /opt/wine-devel/bin, so wine may not be available on PATH immediately.

command -v wine || echo "bash: wine: command not found"
bash: wine: command not found

Use the channel-specific WineHQ binary path to confirm the installation (stable example shown):

/opt/wine-stable/bin/wine --version
wine-11.0

If you prefer using plain wine commands for the rest of the session, add the selected WineHQ channel path to PATH (replace stable with staging or devel if needed):

export PATH="/opt/wine-stable/bin:$PATH"
command -v wine
wine --version
/opt/wine-stable/bin/wine
wine-11.0

The output confirms the selected WineHQ release is installed and ready to use.

Configure Wine on Fedora and Install Dependencies

After installing Wine, configure it to emulate specific Windows environments and install dependencies like Mono for .NET applications. This section covers initial setup through the final configuration adjustments.

If you installed Wine from WineHQ and did not add its channel path to PATH, replace commands like wine and winecfg below with the matching full paths such as /opt/wine-stable/bin/wine and /opt/wine-stable/bin/winecfg.

Configure Wine with winecfg on Fedora

The winecfg tool configures Wine to emulate specific Windows environments and fine-tune settings for audio, graphics, libraries, and drivers. Run it after installing Wine or when preparing to use a new Windows application:

winecfg

Running this command launches the Wine Configuration window. By default, Wine emulates Windows 10, which works well for most applications. However, you can adjust this setting if a specific application requires a different Windows version.

Within the configuration window, you can customize:

  • Audio: Configure sound output and input to match your system hardware. Navigate to the Audio tab to ensure proper sound functionality in games, media players, or communication tools.
  • Graphics: Enable virtual desktop mode or adjust screen resolution in the Graphics tab. Virtual desktop is useful for older applications requiring fixed screen sizes or for running games in a contained environment.
  • Libraries: Manage DLL overrides in the Libraries tab. Some applications require specific library versions not available by default. Add and prioritize them manually to ensure compatibility.
  • Drivers: Select correct graphics and input drivers for applications with specific hardware requirements. Proper driver configuration enhances compatibility and performance for graphics-intensive applications or peripherals like joysticks and gamepads.

After adjusting settings, click Apply and then OK to save changes. Test your configuration by running a sample Windows application to ensure everything works as expected.

Install Wine Mono for .NET Compatibility

Many Windows applications rely on the .NET Framework, which Wine handles through Wine Mono. When you launch winecfg for the first time, Wine may prompt you to install Mono if it is not already configured. Select the install option, and Wine will automatically download and configure Wine Mono and its dependencies.

If you see a prompt or an error such as wine mono is not installed, return to winecfg and allow the Wine Mono download. This is a common first-run requirement for Windows applications that depend on .NET components.

Use Winetricks with Wine on Fedora Linux

winetricks is a utility designed to simplify installing additional libraries, fonts, and configurations needed to run Windows applications on Wine. It handles dependencies that specific programs require, such as Microsoft fonts on Fedora or DirectX components.

Install Winetricks on Fedora

To begin, install winetricks on your Fedora system. This also reinstalls it if a WineHQ installation with --allowerasing removed it during the switch from Fedora’s Wine packages.

sudo dnf install winetricks

After installation completes, verify winetricks is available:

winetricks --version

The command outputs the installed version, confirming winetricks is ready for use.

20260125

Launch Winetricks on Fedora

Once installed, launch winetricks to access its graphical interface:

winetricks

The interface displays a menu where you can browse and install components needed by Windows applications:

  • Core Fonts: Add common Windows fonts like Arial and Times New Roman to fix missing characters in applications. For system-wide Microsoft font installation, see how to install Microsoft fonts on Fedora.
  • Libraries: Install DirectX, Visual C++ redistributables, or .NET Framework for compatibility with demanding software.
  • Graphics Settings: Configure virtual desktops, tweak rendering options, or improve performance for specific applications.

Why Use Winetricks with Wine?

Winetricks automates tedious configurations, saving time and ensuring a smooth experience when running Windows applications. It’s ideal for enhancing compatibility with complex software.

Example: Install Notepad++ Windows Application on Fedora Linux

This example demonstrates how to install and run Notepad++, a popular text and code editor, using Wine on Fedora.

Step 1: Download the Notepad++ Installer

Visit the official Notepad++ website and download the latest .exe installer file.

Step 2: Run the Installer with Wine

First, navigate to the directory where the installer is saved. Then, launch the installer using Wine by running the following command in your terminal, replacing <path-to-installer> with the file’s location:

wine <path-to-installer>

Alternatively, right-click the .exe file, select Open With, and choose Wine Windows Program Loader.

Step 3: Follow the Installation Wizard

The Windows-style installation wizard will appear. Simply proceed through the prompts to complete the installation, accepting the default options unless you have specific preferences.

Step 4: Launch Notepad++

After installation completes, you can run Notepad++ using the following command:

wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe

Additionally, you may create a desktop shortcut or add the application to your system menu for easier access.

Step 5: Verify Installation Success

Open Notepad++ and test its features, such as editing text or coding. Afterward, ensure that the application functions as expected and customize settings if needed.

Manage and Update Wine on Fedora Linux

Wine provides several commands to manage your Windows applications and environment. Use these to configure 32-bit support, keep Wine updated, or cleanly remove it when no longer needed.

Create a Dedicated 32-bit Wine Prefix on Fedora

Certain older Windows applications require a 32-bit Wine setup to run correctly. To create a dedicated 32-bit Wine environment, begin by setting the Wine architecture to 32-bit in your terminal:

export WINEARCH=win32

Next, define a separate Wine prefix for this 32-bit environment. The prefix acts as a unique configuration directory, ensuring it does not interfere with your default Wine setup:

export WINEPREFIX=~/.wine32

Lastly, launch the Wine configuration tool to initialize the 32-bit environment:

winecfg

Once configured, you can install and run 32-bit Windows applications in this environment without any conflicts.

Update Wine on Fedora

Keep Wine updated to maintain compatibility with the latest Windows applications. If you installed Wine via Fedora’s default repositories, update it by refreshing package lists and upgrading all packages:

sudo dnf upgrade --refresh

Running this refreshes your package lists and upgrades Wine along with other packages that have available updates.

Remove (Uninstall) Wine on Fedora

When you need to remove Wine from your Fedora system, the process depends on whether you installed it from the WineHQ repository or Fedora’s default repositories.

Uninstalling WineHQ Versions

For Wine installed via the WineHQ repository, use the command corresponding to your installed version. Specifically, to remove the stable release, run:

sudo dnf remove winehq-stable

Similarly, for the staging release, execute:

sudo dnf remove winehq-staging

If you installed the development release, use:

sudo dnf remove winehq-devel

Afterward, remove the WineHQ repository to clean up your system:

sudo rm /etc/yum.repos.d/winehq.repo

As a result, no lingering repository files remain on your system.

Optionally, list the WineHQ GPG key package and remove it only if you no longer use any WineHQ repositories (the exact package name can change when WineHQ rotates keys):

rpm -qa 'gpg-pubkey*' | grep -i '76f1a20f'
gpg-pubkey-d43f640145369c51d786ddea76f1a20ff987672f-5c0e9ab8

If the command returns a match, remove that exact package name from the output:

sudo rpm -e <matching-gpg-pubkey-package>

Uninstalling Standard Wine Versions

In contrast, the removal process is simpler for Wine installed from Fedora’s default repositories. To uninstall, execute:

sudo dnf remove wine

Additionally, if you enabled 32-bit support during installation, remove the 32-bit libraries as well:

sudo dnf remove wine.i686

Remove Winetricks (Optional)

Likewise, if you installed winetricks, remove it as well:

sudo dnf remove winetricks

Remove Wine User Data

The following commands permanently delete Wine configuration files, installed Windows applications, and any data stored within Wine’s virtual Windows environment. Export or backup important data before proceeding.

Remove Wine’s default prefix directory containing all Windows applications and settings:

rm -rf ~/.wine

Remove Wine cache and desktop entries:

rm -rf ~/.cache/wine ~/.local/share/applications/wine*

If you created additional prefixes (such as the 32-bit prefix from earlier), remove them as well:

rm -rf ~/.wine32 ~/.local/share/wineprefixes/*

Troubleshoot Wine Issues on Fedora Linux

When running Windows applications through Wine, you may encounter issues related to dependencies, graphics, or application compatibility. This section covers common problems and their solutions.

WineHQ Installation Fails with wine-core Conflicts

When switching from Fedora’s Wine packages to WineHQ, dnf can fail because Fedora’s wine-core packages remain installed even after removing wine and wine.i686.

Failed to resolve the transaction:
Problem: problem with installed package
  - installed package wine-core-11.0-2.fc43.x86_64 conflicts with wine-core provided by winehq-stable...
You can try to add to command line:
  --allowerasing to allow removing of installed packages to resolve problems

Check which Wine-related packages are still installed:

rpm -qa 'wine*' | sort
wine-common-11.0-2.fc43.noarch
wine-core-11.0-2.fc43.i686
wine-core-11.0-2.fc43.x86_64
wine-filesystem-11.0-2.fc43.noarch

Install the WineHQ package with --allowerasing so dnf can replace the conflicting Fedora components automatically:

sudo dnf install winehq-stable --allowerasing

Use the same --allowerasing option for winehq-staging or winehq-devel. DNF may also remove winetricks during this replacement, so reinstall it afterward if needed.

Wine Command Not Found After WineHQ Installation

WineHQ on Fedora installs binaries under /opt/wine-*/bin, so you may see a command not found error immediately after installation.

bash: wine: command not found

Confirm whether wine is available on PATH:

command -v wine || echo "bash: wine: command not found"
bash: wine: command not found

Use the channel-specific path directly or export it for the current shell session (stable example shown):

export PATH="/opt/wine-stable/bin:$PATH"
wine --version
wine-11.0

Fix Missing 32-bit Libraries in Wine

If a Windows application fails to launch with errors about missing libraries, you may need 32-bit Wine support:

wine: Bad EXE format for Z:\path\to\application.exe

Typically, this error means a 32-bit application requires 32-bit Wine libraries. First, confirm the 32-bit package is missing:

rpm -q wine.i686 || echo "wine.i686 not installed"
package wine.i686 is not installed

To resolve it, install 32-bit support:

sudo dnf install wine.i686

Verify installation and retry launching the application:

wine-11.0-2.fc43.i686

Fix Wine Application Crashes or Visual Glitches

Graphics-intensive applications may crash or display incorrectly due to missing DirectX or graphics driver issues:

err:module:import_dll Library d3dx9_43.dll (needed by L"Z:\\path\\game.exe") not found

Check whether DirectX and Visual C++ components are already installed:

winetricks list-installed | grep -E 'd3dx9|vcrun2015' || echo "d3dx9/vcrun2015 missing"
d3dx9/vcrun2015 missing

Install the required components with winetricks:

winetricks d3dx9 vcrun2015

Confirm the components are registered, then retry the application:

d3dx9
vcrun2015

For persistent visual glitches, enable virtual desktop mode in winecfg under the Graphics tab. This contains the application in a fixed-size window and often resolves rendering issues. If you have an NVIDIA GPU and experience poor gaming performance or rendering problems, ensure you have proper drivers installed by following how to install NVIDIA drivers on Fedora.

Fix Audio Not Working in Wine

When you hear no sound in Wine applications, you may see errors about missing devices:

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave

Verify PipeWire or PulseAudio is active and a default sink is set:

pactl info | grep -E "(Server Name|Default Sink)"
Server Name: PulseAudio (on PipeWire 1.2)
Default Sink: alsa_output.pci-0000_00_1f.3.analog-stereo

Next, open winecfg and select the matching audio driver under the Audio tab, then use Test Sound to confirm output. A successful test plays the chime without errors.

winecfg
Test succeeded: sound output device working

If testing fails, check that your system audio is working outside Wine with standard Linux applications before retrying.

Useful Wine Resources and Support

Use these official Wine resources when you need compatibility reports, upstream documentation, or a place to check known issues before troubleshooting further.

For related Fedora guides, use Steam on Fedora for Linux-native and Proton-managed games, or PlayOnLinux on Fedora if you want a graphical Wine prefix manager.

Frequently Asked Questions

Is Wine available in Fedora’s default repositories?

Yes. Fedora ships Wine in the default repositories, so most users can start with sudo dnf install wine. Use WineHQ only if you need a newer upstream stable, staging, or development build.

Why does WineHQ installation fail with a wine-core conflict on Fedora?

Fedora’s Wine packages can leave wine-core components installed, which conflicts with winehq-stable, winehq-staging, or winehq-devel. Install the WineHQ package with --allowerasing so dnf can replace the conflicting Fedora packages.

Why is the wine command not found after installing WineHQ on Fedora?

On Fedora, WineHQ installs binaries under /opt/wine-stable/bin, /opt/wine-staging/bin, or /opt/wine-devel/bin. Use the full path or add the selected directory to your PATH before running wine and winecfg.

Do I need wine.i686 on 64-bit Fedora?

Only if you need 32-bit Windows applications or games. Many 64-bit programs run without it, but installing wine.i686 improves compatibility for older software and launchers that still require 32-bit libraries.

What does the ‘wine mono is not installed’ message mean on Fedora?

It means Wine needs the Wine Mono component for .NET-dependent Windows applications. Open winecfg and allow the Wine Mono download when prompted, then rerun the application.

Conclusion

Wine on Fedora works well once the setup details are handled correctly, and this guide covers the two places users usually lose time: package conflicts when switching to WineHQ and missing WineHQ binaries on PATH. Start with Fedora’s packages unless you need WineHQ, then add Winetricks components only when a specific application actually needs them.

Found this guide useful?

Support LinuxCapable to keep tutorials free and up to date.

Buy me a coffee Buy me a coffee

4 thoughts on “How to Install Wine on Fedora Linux”

    • Thanks for sharing the fix, Christian. You were absolutely right. The article had the old DNF4 syntax when you commented in January. Fedora 41 introduced DNF5, which changed --add-repo to addrepo --from-repofile=.

      The article now uses the correct DNF5 syntax with automatic version detection:

      sudo dnf config-manager addrepo --from-repofile=https://dl.winehq.org/wine-builds/fedora/$(rpm -E %fedora)/winehq.repo

      The $(rpm -E %fedora) macro automatically expands to your Fedora version, so readers no longer need to manually specify 41, 42, or 43. Your feedback directly drove this improvement.

      Reply
  1. Good enough to get it running which is only the second time I have actually gotten Wine to run. Usually it says it can’t do the configuration. So this guide was excellent for me.

    BUT, there was no prompt to install mono… So I worried about missing something critical.

    Reply
    • Thanks for the kind words, tom. Glad the guide helped you get Wine running.

      The Mono prompt does not always appear automatically. Wine typically prompts for Mono when you first launch an application that requires .NET support. If you only ran winecfg without testing a .NET application, the prompt may not trigger.

      You can install Mono manually through winetricks if needed:

      winetricks mono

      If your Windows applications run without errors, you likely do not need Mono at all. It is only required for software built on the .NET Framework.

      Reply
Before commenting, please review our Comments Policy.
Formatting tips for your comment

You can use basic HTML to format your comment. Useful tags currently allowed:

You type Result
<code>command</code> command
<strong>bold</strong> bold
<em>italic</em> italic
<blockquote>quote</blockquote> quote block

Leave a Comment

We read and reply to every comment - let us know how we can help or improve this guide.

Let us know you are human: