PDF download Download Article
Run Windows programs on Linux with Wine so you don’t have to dual boot
PDF download Download Article

You don’t have to sacrifice the appeal of Windows software for the stability, security, customizability, and old-school cool of Linux. This wikiHow guide will walk you through running Windows executable (EXE) applications and games on any Linux distribution, including Ubuntu and Linux Mint. We'll also teach you how to make a Linux file executable and run it from the command line.

Quick Steps

  1. Type "sudo dpkg --add-architecture i386" and press Enter.
  2. Download and add the Wine repository key.
  3. Add the Wine repository for your Linux distribution.
  4. Type "sudo apt update" and press Enter.
  5. Type "sudo apt install --install-recommends winehq-stable" and press Enter.
  6. Type "wine program_name.exe" to run an EXE.
Section 1 of 6:

Will EXE files run on Linux?

PDF download Download Article
  1. Wine is a compatibility layer that acts between the operating system (Linux) and the file (written for Windows).[1] It is the only way to run .exe files without a copy of Windows.[2] Since .exe files are native to Windows operating systems, to run them, you must have a compatibility layer (like Wine) or copy of Windows via a Windows emulator (which means you'll no longer solely be using Linux).
    • While you can run many EXE files on Linux with Wine, some may not work as expected, or not at all.
    • If you want to make a Linux file executable rather than running a Windows EXE file on Linux, jump down to How to Execute a Linux File.
  2. Advertisement
Section 2 of 6:

How to Download Wine

PDF download Download Article
  1. To install Wine on any Debian-based Linux system (including Ubuntu, Linux Mint, and POP!_OS), you'll just need to run a few simple commands. Even though the terminal might look intimidating, don’t worry! You’re unlikely to mess anything up, and all you have to do is copy these commands.
  2. If you're using a modern version of Ubuntu, or virtually any other modern Linux distribution, you'll need to enable 32-bit support to ensure Wine can run 32-bit Windows EXE programs. You can determine whether your system is 64-bit by running the command lscpu. Then, to enable 32-bit support, type sudo dpkg --add-architecture i386 and press Enter.[3]
  3. The developers of Wine say the version available in your default repository are buggy and out of date. To make sure you're installing the latest version of Wine, you'll need to get it from Wine's own repositories. First, download and add the repository key:
    • Type sudo mkdir -pm755 /etc/apt/keyrings and press Enter.
    • Type sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key and press Enter.
  4. Run the command for the version of Linux you're running:
    • Ubuntu 24.10 (Oracular): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/oracular/winehq-oracular.sources
    • Ubuntu 24.04/Linux Mint 22 (Noble): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
    • Ubuntu 22.04/Linux Mint 21.x (Jammy): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
    • Ubuntu 20.04/Linux Mint 20.x (Focal): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
    • Debian 12 (Bookworm): sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
    • See https://gitlab.winehq.org/wine/wine/-/wikis/Debian-Ubuntu for other versions.
  5. Now you're all set to install Wine!
    • Type sudo apt update and press Enter to update the package information.
    • Type sudo apt install --install-recommends winehq-stable and press Enter.[4]
  6. Advertisement
Section 3 of 6:

How to Run an EXE File on Linux

PDF download Download Article
  1. In the terminal, navigate to the directory containing the file with the command cd <directory name>.[5] Then, run the file with the command wine <filename>.exe.
    • For instance, if the file example.exe were stored on your desktop, you’d follow this procedure:[6]
      • cd Desktop/ and press Enter
      • wine example.exe and press Enter
    • Some Windows EXE files will not run without some configuration tweaks. If you're seeing an error message or otherwise having trouble getting an EXE to run, check the Wine Application DB to find out about compatibility settings and configuration for specific Windows apps.[7]
    • If you see an error message like "cannot execute binary file: Exec format error,"
Section 4 of 6:

Running Windows Software on Linux

PDF download Download Article
  1. This is the only option for running software designed for Windows without a true version of Windows. Wine is open-source, free software that recreates just enough of Windows to run Windows programs. As a result, you might encounter more bugs and lower performance running software through Wine.
  2. Virtual machines are programs that run a full copy of Windows in their own window. This approach is less buggy than running apps through Wine because you technically run them in their native environment (Windows). The downside is that you’ll be running two operating systems (Linux and Windows) simultaneously, so your PC’s performance might suffer.[8]
    • Popular virtual machines include: VirtualBox, VMware, and Linux’s built-in KVM (Kernel-based Virtual Machine).[9]
    • Because of the computing power required to run both Linux and Windows, this approach works great for productivity apps like Microsoft Office, but not great for graphics/computing-intensive programs like many video games.
  3. Dual-booting means you’ll reboot your computer into Windows so the application can run in its native environment. This method is best for games or applications that need high performance. Unfortunately, it does mean you’ll have to reboot your machine every time you want to run Windows software.[10]
  4. WSL (Windows Subsystem for Linux) is an environment that supports running Linux tools and apps with a native Linux kernel through a hypervisor layer on Windows. If you are already running Windows, you can use WSL to install a Linux distribution within Windows.[11]
  5. Advertisement
Section 5 of 6:

How to Execute a Linux File

PDF download Download Article
  1. Once you make the file executable, you can execute it from the command line. Here’s how to make a Linux file executable so you can run it like a program:
    • Type chmod +x file-name in the command line to make the file executable. Replace file-name with the name of the file.
    • Type ./file-name to execute the file.
    • If an error pops up, type sudo ./file-name. Typing sudo allows you to run the file with root permissions. Just be careful, since sudo allows you to make changes to your system.
    • Software installation will often require you to type sudo.
Section 6 of 6:

What's the .exe equivalent in Linux?

PDF download Download Article
  1. For Windows, .exe indicates an executable file, meaning the operating system can run the file. Linux doesn’t use file extensions to indicate which files are executable.[12] Instead, it uses permissions (the basic permissions are read r, write w, and execute x). Permissions determine which files are executable. As a result, Linux files can have different extensions (ex. .sh) or no file extensions and still be executable.
  2. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Install Google Chrome Using Terminal on Linux
Linux How to Mount Drive Mount Drives on Linux: Command Line & GUI
Use Wine on Linux Install and Use Wine on Linux
Tar a Directory Tar a Directory and Subdirectories in Linux
Take a Screenshot in LinuxTake a Screenshot in Linux
Become Root in LinuxBecome Root in Linux
Execute INSTALL.sh Files in Linux Using Terminal Run an INSTALL.sh Script on Linux in 4 Easy Steps
Add or Change the Default Gateway in LinuxAdd or Change the Default Gateway in Linux
Install DebianEasy Debian Linux Installation Tutorial
Run Files in LinuxRun Files in Linux
Execute .RUN Files in LinuxExecute .RUN Files in Linux
Boot Linux from a USB on Windows 10 Run Linus from a USB: Making a Bootable Stick and Installing
Unrar Files in Linux Open RAR Files in Linux using Unrar
Create an ISO File in LinuxCreate an ISO File in Linux
Advertisement

About This Article

Garnik Ovsepyan
Co-authored by:
Computer Specialist
This article was co-authored by Garnik Ovsepyan and by wikiHow staff writer, Nicole Levine, MFA. Garnik Ovsepyan is a Computer Specialist and the Owner of HeliX PC based in Burbank, California. With over 25 years of experience, Garnik specializes in custom computer builds, computer repairs, virus removal, computer tune-ups, hardware and software troubleshooting and installations, diagnostics, and data backup and recovery. This article has been viewed 500,903 times.
How helpful is this?
Co-authors: 9
Updated: November 22, 2024
Views: 500,903
Categories: Linux
Thanks to all authors for creating a page that has been read 500,903 times.

Is this article up to date?

Advertisement