Install WINE 4 in Linux

WINE 4 brings better Microsoft Office compatibility and via a better architecture, higher levels of compatibility for native Windows executables than ever. Here’s how to install the latest WINE on Linux.

Please refer to the official WINE install reference as well.

Install WINE repo key

wget -nc

apt-key add winehq.key

Assuming Ubuntu 18.04:

apt-add-repository 'deb bionic main'

Install winehq-devel or winehq-stable.

apt install --install-recommends winehq-devel

Note: --install-recommends is important or you’ll get lots of errors messages on trying to install. This installs WINE under /opt

Get the latest Winetricks script:

cd ~

when you want to use Winetricks to install libraries:


Which WINE versions are available?

You can see which WINE versions are available with

apt-cache policy winehq-devel
apt-cache policy winehq-stable