linux

How to install Wine 5.0 on Debian, Ubuntu and Linux Mint

 

Wine is an open source, free and easy to use program that allows Linux users to run Windows based applications Unix type operating systems. Wine is the compatibility layer for installing almost all versions of Windows programs.

Wine 6.0 has finally been released and comes with a number of numerous improvements and a total of 40 bug fixes. You will find all the new features and change log in this new release Wine declaration project page.

This article describes a few easy steps to install the latest stable version Wine 6.0 below Debian 10/9, Ubuntu 20.04-18.04and Linux Mint 20-19 systems, and we will also see how specify wine, Install Windows software and uninstall.

Installing Wine 6.0 on Debian, Ubuntu and Linux Mint

If you want to get the latest version Wine 6.0 stable series, you need to use the new Wine archive PPA which offers both developmental and stable versions of Wine for Debian, Ubuntuand Linux Mint.

Install Wine on Ubuntu and Linux Mint

Install Wine 6.0 on Ubuntu and Linux Mint, open the terminal by hitting 'CTRL + ALT + T‘from the desktop and install the following commands:

----------------- On Ubuntu & Linux Mint ----------------- 
$ sudo dpkg --add-architecture i386    [Enable 32-bit Arch]
$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key
$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'  [Ubuntu 20.04 & Linux Mint 20]
$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' [Ubuntu 18.04 & Linux Mint 19.x]
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' [Ubuntu 16.04 & Linux Mint 18.x]


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

 

If you get an error “wine-stable: Depends: wine-stable (= 6.0.0 ~ bionic)“When you install wine, you need to add the following PPA to correct the error.

$ sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
$ sudo apt-get update
$ sudo apt-get install --install-recommends winehq-stable

Install Wine on Debian

Installing wine Debian.

$ sudo dpkg --add-architecture i386
$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key

Next, add the following archive /etc/apt/sources.list or create *.list below /etc/apt/sources.list.d/ the content of which is as follows.

deb https://dl.winehq.org/wine-builds/debian/ buster main    [Debian 10 (Buster)]
deb https://dl.winehq.org/wine-builds/debian/ stretch main   Debian 9 (Stretch)

Now update the package repository database and install Wine as shown in the image.

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

Installing wine using source code on Debian, Ubuntu and Mint

Another way to get the latest stable version of wine (i.e. 6.0 now) is to build wine from source using the following commands.

$ wget https://dl.winehq.org/wine/source/6.0/wine-6.0.tar.xz
$ tar -xvf wine-6.0.tar.xz
$ cd wine-6.0/
$ sudo ./configure 
$ sudo ./configure --enable-win64   [For 64-bit platform]
$ sudo make && sudo make install

How to use Wine to run Windows applications and games

To show how we can run a Windows program on wine, we have downloaded Rufus .exe file provided by the clerk Rufus download page.

To run the Windows Rufus executable file, run the command:

$ wine rufus-3.13.exe
Run Windows in Ubuntu
Run Windows in Ubuntu

After running the program, Wine will start creating a configuration file in the user’s home directory, in this case ~/.wine as shown.

Wine composition
Wine composition

During wine assembly, it is installed wine mono package which is required .NET applications, clickInstallbutton.

Wine mono installer
Wine mono installer

The download will start soon.

Downloading Wine Mono Installer
Downloading Wine Mono Installer

In addition, it will also ask you to install Gecko a package required by HTML embedding applications.

Wine Gecko Installer
Wine Gecko Installer

Choose whether to check for application updates from time to time.

Rufus update policy
Rufus update policy

Finally, Rufus is shown as shown.

Rufus Programe Running on Ubuntu
Rufus running on Ubuntu

Installation was successful Wine on Debian, Ubuntu, and Linux Mint and showed a preview of how you can use Windows applications in a Linux environment.

Uninstalling Wine from Debian, Ubuntu and Linux Mint

If you are not satisfied with the wine program, you can delete it completely with the following command.

$ sudo apt purge winehq-stable

You can also download wine source code package for others Linux distributions wine download page.

Related Articles

Leave a Reply

Your email address will not be published.

Back to top button