How to Install and Use Wine on Ubuntu!

Created October 12, 2021

What is Wine?

Wine is an open-source compatibility layer that allows you to run Windows applications on Unix-like operating systems such as Linux, FreeBSD, and macOS. Wine is an acronym for “Wine Is Not an Emulator”. It translates Windows system calls into equivalent POSIX calls used by Unix-based operating systems, allowing you to seamlessly integrate Windows programs into your desktop environment.


Installation

The Wine packages are included in the default Ubuntu repositories and can be easily installed with the apt package manager. This is the easiest way to install Wine on Ubuntu. However, the distro version may lag behind the latest release of Wine. Most of the Windows applications are built for 32-bit architecture. The first step is to enable multiarch, which allows you to install both 64 and 32-bit packages on the machine. If you are running a 64-bit Ubuntu system, enable the 32-bit architecture and update the packages list:

sudo dpkg --add-architecture i386
sudo apt update

Import the WineHQ repository’s GPG key:

wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt install software-properties-common
sudo apt-add-repository "deb http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main"

Install Wine by typing:

sudo apt install --install-recommends winehq-stable

Once completed, verify the Wine installation by typing:

wine --version

At the time of writing this article, the latest major release of the Wine is version 6.0:

wine-6.0

That’s it, you have successfully installed Wine on your Ubuntu Server and you can start using it!

If you found this usful then please share this and follow me! Also check out my website where I also post everything from here