DEV Community

Shafi
Shafi

Posted on

How to Install Wine and Run Windows Software on Linux

By following this guide, you will be able to run Windows application on Distributions such as Ubuntu, Fedora, Pop!_OS, Elementary OS, Linux Mint, Zorin OS etc.

Installing Wine - Ubuntu

This part of the tutorial is also applicable for Pop!_OS or any other Ubuntu based distros.

  • Download the Wine repository
wget -nc https://dl.winehq.org/wine-builds/winehq.key
Enter fullscreen mode Exit fullscreen mode
  • Add the repository key to your system
sudo apt-key add winehq.key
Enter fullscreen mode Exit fullscreen mode
  • Add the repository | Ubuntu 21.04
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main'
Enter fullscreen mode Exit fullscreen mode
  • Add the repository | Ubuntu 20.10
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main'
Enter fullscreen mode Exit fullscreen mode
  • Update System Packages
sudo apt update
Enter fullscreen mode Exit fullscreen mode
  • Finally, Install Wine
sudo apt install --install-recommends winehq-stable
Enter fullscreen mode Exit fullscreen mode

Installing Wine - Fedora

  • Add the Repository | Fedora 34
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/34/winehq.repo
Enter fullscreen mode Exit fullscreen mode
  • Add the Repository | Fedora 33
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/33/winehq.repo
Enter fullscreen mode Exit fullscreen mode
  • Install Wine
sudo dnf install winehq-stable
Enter fullscreen mode Exit fullscreen mode

Downloading and Running Windows Applications

  • To keep this short download Notepad++

  • Double click on the Installer File (exe), It'd launch a Wine instance.

  • Because this is our first use, wine might ask us to install one or two additional packages required to run Windows Applications. Allow to install them.

  • After that our installer for Notepad++ would start and we'd proceed to install the app as if we were on Windows.

Notepad++ on Linux

Well, we're up and running folks!

You can access your installed application later by the Application Menu

Windows App on Linux Menu

Top comments (2)

Collapse
 
naruaika profile image
Naufan Rusyda Faikar

Why not using wine from the official Fedora repository?

Collapse
 
shafiemoji profile image
Shafi

That has never been very reliable for me, works like 30% of the time. And it only takes three commands to install it anyway.