How to install Wine 6.0 on Ubuntu 20.04

One of the concerns users transitioning to Linux have is whether they will be able to run their favorite applications on Linux. These can range from Windows games to simple application software. Fortunately, Wine allows users to run and run Windows programs on Linux / Unix systems. Wine (Wine Is Not an Emulator) is an open source compatibility layer that allows you to run Windows applications in a Linux / Unix environment. Wine acts as an interpreter creating an execution layer for programs that can be run on Linux. It also provides a Winelib library that developers can use to compile Windows applications for porting to native Unix executables.

The latest version of Wine is Wine 6.0 which was released on January 14, 2021. It offers a variety of improvements that border on major areas such as:

  1. Support from DirectShow and Media Foundation.
  2. Redesign of the text console.
  3. Core modules in PE format.
  4. Vulkan backend for WineD3D.

In this manual we give you an insight into the installation of Wine 6.0 on Ubuntu 20.04. We already have a tutorial on installing Wine on Debian 10.

Step 1: update the system

First and foremost, make sure that the package lists are updated by running the command:

$ sudo apt update

Step 2: Download and add the Wine repository key

After upgrading the system, the next course of action is to download the repository key and add it to the gpg keyring file. Use sudo apt-key list to list your trusted keys.


The following command adds the key to the wine repository:

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

Step 3: add the Wine repository

Once the repository key has been added, go ahead and enable the Wine repository on your Ubuntu system as follows:

$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

Step 4: Install Wine on Ubuntu 20.04

Now that the repository is ready, you can install Wine 6 on your Ubuntu 20.04 system.

$ sudo apt update
$ sudo apt install --install-recommends winehq-stable

A number of packages are downloaded.

After the installation has completed successfully, check the Wine version with the command. Wine version 6.0 is installed on your computer.

$ wine --version

Step 5: Install .Exe programs with Wine

Wine can be started directly from the terminal as follows:

$ wine

To get help using Wine software:

$ wine --help

Now let’s install a Windows application, in this case Notepad ++, a code editor. Download the .exe file from the Github repository as follows.

$ wget https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v7.8.8/npp.7.8.8.Installer.exe

Then run the application with wine to install your downloaded .exe application.

$ wine npp.7.8.8.Installer.exe

Wine creates a configuration file and stores it in the home directory. ~ /. wine.

For .NET applications to work, you need to install Wine Mono installer.


Wine 6.0 on Ubuntu 04/20
Install Wine Mono Package

The download takes about 3 minutes or so.


install-wine-mono-package
install-wine-mono-package

Also install the Wine gecko Package.


Wine 6.0 on Ubuntu 04/20
install-wine-gecko-package

Finally, the Notepad ++ installer will appear as shown. Just click ‘Next“And accept the default settings.


You can start Notepad from Terminal with the command:

$ wine notepad

diploma

Wine comes in handy when you want to run Windows-only applications that you want to run in a Linux environment. Hopefully now you can install Wine on Ubuntu 20.04 and run Windows applications.