How to run Windows apps on your Ubuntu PC

It's possible to run a Windows app on your Ubuntu PC. Wine app for Linux makes this possible by forming a compatible layer between the Windows and Linux interface. Let's check out with an example.

Allow us to say that there are not as many applications for Linux compared to Microsoft Windows. Linux has a vast world of free and open-source applications (FOSS) that should get almost all of your work done, but if you’re in a situation where you need to install and run a Windows program on your Linux system, don’t worry, we’ve got it covered too!

Wine for Linux allows you to run any other Windows application on your Linux desktop. Developers are still working to improve it, and it’s getting better every day. Having said that you may find some apps not working correctly.

Using a Windows app on Ubuntu

In this tutorial, we are going to walk you through the installation of Wine. Moreover, we will show you how to know whether the application can work with Wine or not. This guide can be divided into the following three parts:

  1. Wine Package Installation On Ubuntu.
  2. Search and Install Windows Application Using Wine.
  3. Uninstall Wine Completely From Ubuntu.

The following tutorial was performed on the Ubuntu machine, so before starting this guide, you need to make sure that your system is up to date using the following commands inside a Terminal. Or, if you prefer the GUI way, you can use the Ubuntu Software Center.

sudo apt update
sudo apt upgrade

Wine Package Installation On Ubuntu

Before starting, you need to check if your system is 32-bit or 64-bit. Then choose the suitable Wine version.

Step 1. Enter the following command to find out if your system is 32-bit or 64-bit.

uname -m

If you get output like the below then your system is 64-bit otherwise its 32-bit:

Check Ubuntu Architecture
Check Ubuntu Architecture

Step 2. (Skip this step if your system is 32-bit.) If your Ubuntu is 64-bit, then you need to run the following command to add the Wine i386 architecture before proceeding with the next steps.

sudo dpkg --add-architecture i386

Before Installing the Wine 64-bit Version Add the i386 Architecture
Before Installing the Wine 64-bit Version Add the i386 Architecture

Step 3. Use the following command to add the Wine signing key:

wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -

Add the Wine Signing Key
Add the Wine Signing Key

Step 4. To add the latest available Wine repository.

sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ artful main'

Add the Latest Repository from the WineHQ
Add the Latest Repository from the WineHQ

Step 5. Wine has two available versions to download. The stable version and the development version. We recommend the stable version to make sure your installation is reliable.

Install the stable version:

sudo apt-get install --install-recommends winehq-stable

Install The Latest Stable Release of Wine
Install The Latest Stable Release of Wine

To install the development version:

sudo apt-get install --install-recommends winehq-devel

Step 6. To ensure that Wine has installed successfully, use the following command to fish out the Wine version.

wine --version

Wine Succesfully Installed
Wine Successfully Installed

Search and Install Windows Application Using Wine

As mentioned earlier, you won’t find all the Windows applications, but Wine developers are making tremendous progress. First, you need to search for the Windows application you need to use. Then download, install, and open it using Wine.

Step 1. Using your favorite internet browser, open the Wine official website to search for Windows applications that are available to be used with Wine.

Launch Wine website

Step 2. From the left panel on the Wine website, select “Browse Apps.”

Select Browse Apps
Select Browse Apps

Step 3. Next, search for the application you want to download.

Start Searching For a Certain Application
Start Searching For a Certain Application

Step 4. In this example, we will search for the Notepad++ application to download. Then click on the application name to get more information.

Search For Application And Get Results
Search For Application And Get Results

Step 5. You should get all the available versions from the Notepad++ application. Choose any one and click to open it.

Select The Version You need to Download
Select The Version You need to Download

Step 6. To download the required version, click on the given URL.

Download Link
Download Link

Step 7. Choose the “.exe” file to download.

Select The Installer exe File
Select The Installer exe File

Step 8. Save your file and click OK to download.

Save Your File
Save Your File

Step 9. The download finishes successfully.

Application Downloaded Successfully
Application Downloaded Successfully

Step 10. Move to the download directory.

Move To The Download Directory
Move To The Download Directory

Step 11. Right-click on the downloaded application and select to “Open With Wine Windows Program Loader” option.

Select Open With Wine
Select Open With Wine

Step 12. Wine should start to perform configuring and should create some directories.

Wine Configuration Message
Wine Configuration Message

Step 13. Typically, Wine may need to install some more packages to run the downloaded application. Click to install .Net.

Select The Install Button
Select The Install Button

.Net download and installation in progress.

Select The Install Button To Install Gecko Package
Download Inprogress

Wine requires to install Gecko, click the “Install” button.

Select The Install Button To Install Gecko Package
Select The Install Button To Install Gecko Package

Gecko download and installation in progress.

Download Required Gecko Package
Download Required Gecko Package

Step 14. Now Notepad++ application installer will open, select your preferred language and click OK.

Press Ok Button To Install Notepad++
Click OK Button To Install Notepad++

Step 15. Click Next to continue the installation.

Press Next To Continue
Click Next To Continue

Step 16. Read the license agreement and click, I Agree.

Agree On License Terms and Conditions
Agree On License Terms and Conditions

Step 17. Installation location, as you can see, the installation will be the same as Windows.

Select Installation Location
Select Installation Location

Step 18. Custom your installation if you need it.

Custom Your Installation
Custom Your Installation

Step 19. Now Notepad++ will extract its required files.

Installation Is Inprogress
Installation Is Inprogress

Step 20. Notepad++ has installed successfully on Ubuntu using Wine.

Installation Completed Successfully
Installation Completed Successfully

Step 21. That’s it! You should be able to launch the Notepad++ application.

Welcome To Notepad++ On Ubuntu Using Wine
Welcome To Notepad++ On Ubuntu Using Wine

Uninstall Wine Completely From Ubuntu

Just in case if you do not want to use the Wine application anymore, you can altogether remove it from Ubuntu, please follow the below steps carefully.

Step 1. Purge Wine Stable version.

sudo apt-get purge winehq-stable

Uninstall Wine From Ubuntu
Uninstall Wine From Ubuntu

Step 2. Remove all the Wine related directories from your machine. Be careful while using the rm command because any single error in the command you may end up messing your system.

rm ~/.config/wine/ -rf
rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm

Completly Remove Wine Directories
Completely Remove Wine Directories

Now you should have uninstalled Wine entirely from your machine.

Conclusion

That’s all about how to install the Wine application, install Windows app, and use it on your Ubuntu PC.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,874FansLike
265FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to create a GParted live USB drive in Ubuntu, Linux Mint

GParted Live USB Flash Drive
GParted Partition Editor is one of the best programs to create, resize, and manage hard disk partitions. The greatness of free and opensource program is it can be used to work on Linux, Windows, or Mac OS X.
multiboot distros usb
A bootable Linux USB drive, which also referred to as a Live USB drive, is a drive containing files that enable a computer to boot into a specific Linux distro. It is most commonly used to test-drive various Linux distros before installing on the computer for use as a daily driver.
watching disney plus linux
Disney Plus or Disney+ is an on-demand entertainment streaming service in which you should see the content produced by Disney Studios, Star Wars, Marvel, Pixar, and National Geographic. The service was launched on the 12th of November 2019.