Wine Installation¶
Below are the commands for installing Wine on various Ubuntu distributions.
Ubuntu 20.10 (Groovy Gorilla)¶
On Ubuntu 20.10, the following commands will install the stable branch of Wine:
sudo dpkg --add-architecture i386
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/ groovy main'
sudo apt update
sudo apt install --install-recommends winehq-stable
Ubuntu 20.04 (Focal Fossa)¶
On Ubuntu 20.04, the following commands will install the stable branch of Wine:
sudo dpkg --add-architecture i386
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'
sudo apt update
sudo apt install --install-recommends winehq-stable
Ubuntu 18.04 (Bionic Beaver)¶
On Ubuntu 18.04, the following commands are instead used:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DFA175A75104960E
sudo apt update
sudo apt install --install-recommends winehq-stable
Debian 10¶
On Debian 10, the following commands will install Wine:
sudo dpkg --add-architecture i386
sudo apt update
sudo apt -y install gnupg2 software-properties-common
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key | sudo apt-key add -
echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
sudo apt update
sudo apt install --install-recommends winehq-stable
RHEL/CentOS 8¶
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
wget https://dl.winehq.org/wine/source/5.0/wine-5.0.tar.xz
tar -Jxf wine-5.0.tar.xz
cd wine-5.0
##For 32-Bit Systems:
./configure
##For 64-Bit Systems:
./configure --enable-win64
make
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.