User Tools

Site Tools


Below are the commands for installing Wine on various Ubuntu distributions.

Ubuntu 20.10

On Ubuntu 20.10, following commands will install the stable branch of Wine:

sudo dpkg --add-architecture i386 
wget -nc
sudo apt-key add winehq.key
sudo add-apt-repository 'deb groovy main' 
sudo apt update
sudo apt install --install-recommends winehq-stable

Ubuntu 18.04

On Ubuntu 18.04, following commands are instead used:

sudo dpkg --add-architecture i386 
wget -nc
sudo apt-key add winehq.key
sudo apt-add-repository 'deb ./'
sudo apt-key adv --keyserver --recv-keys DFA175A75104960E 
sudo apt update
sudo apt install --install-recommends winehq-stable

Debian 10

On Debian 10, following commands will install Wine:

sudo dpkg --add-architecture i386 
sudo apt update
sudo apt -y install gnupg2 software-properties-common
wget -qO - | sudo apt-key add -
sudo apt-add-repository
wget -O- -q | sudo apt-key add -    
echo "deb ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
sudo apt update
sudo apt install --install-recommends winehq-stable


We have successfully installed Wine 5 on RHEL 8 using the following commands:

(These build Wine from source, hence the installation takes considerably longer.)

sudo -i
dnf clean all
dnf update
dnf groupinstall 'Development Tools'
dnf install libX11-devel freetype-devel zlib-devel libxcb-devel libxslt-devel libgcrypt-devel libxml2-devel gnutls-devel libpng-devel libjpeg-turbo-devel libtiff-devel gstreamer1-devel dbus-devel fontconfig-devel
cd /opt
tar -Jxf wine-5.0.tar.xz
cd wine-5.0
##For 32-Bit Systems:
##For 64-Bit Systems:
./configure  --enable-win64
make install

Configuring Wine

After installing Wine, if you encounter errors about Mono, a useful trick is to delete the folder .Wine and force Wine to download and install Gecko and Mono automatically. Normally, Wine will suggest installing these the first time it is used. Furthermore, opening the wine uninstaller and removing interfering applications might solve some problems. In the end, we are able to use Wine without installing Winetricks or dotnet manually. If you are working on a remote machine, you might need to enable X11 forwarding to see the windows created during the Wine configuration. This is done by connecting via ssh -X and modifying the ssh.config file under etc/ssh accordingly. On RHEL/CentOS 8 some dependencies might need to be installed by the following command:

# dnf install  xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps -y
nnm/wine_installation.txt · Last modified: 2020/11/27 15:10 by kemal.oeztas