1. Home
  2. Linux
  3. Upgrade to wine 5 0 on linux

How to upgrade to Wine 5.0 on Linux

Wine 5.0 is out, and with it comes even more excellent improvements for Linux gamers. There’s a lot to love with this new version of Wine, but some of the best new things are: support for multiple monitors, the Vulkan graphics tool is updated to version 1.1, PE module support, and a re-implementation of XAudio 2. In this guide, we’ll show you how to upgrade to the new version of Wine on your Linux PC.

Ubuntu installation instructions

Are you using Ubuntu? Want to upgrade to Wine 5.0? Here’s what to do. First, open up a terminal window by pressing Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, use the apt search command to determine if you have the “winehq-stable” package installed already.

apt search winehq-stable

If you do have winehq-stable installed, upgrading to 5.0 is as easy as just updating your Ubuntu software sources with the update and installing the latest updates using the upgrade command.

sudo apt update

sudo apt upgrade -y

Unable to find the “winehq-stable” package installed on your Ubuntu Linux PC? Chances are you’re using the Wine 4.0 release in the Ubuntu software repositories, and not the official Wine release. Follow the step-by-step instructions below to learn how to remove the Ubuntu version of Wine and replace it with Wine 5.0.

Step 1: First, purge all traces of the “wine” package from your Ubuntu Linux PC using the apt-get remove command.

sudo apt-get remove wine --purge

Step 2: Run the autoremove command to uninstall any Wine 4.0 dependencies that may reside on your Ubuntu PC.

sudo apt autoremove -y

Step 3: Using the wget command, download the release key file for the WineHQ software repository on your Ubuntu system.

wget -nc https://dl.winehq.org/wine-builds/winehq.key

Step 4: Add the newly downloaded Wine key file to your Ubuntu system using the apt-key add command.

sudo apt-key add winehq.key

Step 5: Now that Ubuntu has the Wine key file, it’s time to add the WineHQ software repository. Using the apt-add-repository command, subscribe to the repo.

Keep in mind that at the time of writing this guide, the newest version of Ubuntu is 19.10. If you are trying to get it working on a later release, click here.

19.10 -  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'
18.04 LTS - sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

Step 6: Using the update command, refresh Ubuntu’s software repositories.

sudo apt update

Step 7: Finally, upgrade to Wine 5.0 by installing the winehq-stable package.

sudo apt install winehq-stable

Debian installation instructions

It is possible to upgrade to Wine 5.0 on Debian Linux since the people behind Wine provide it through their software repository. To start the upgrade, launch a terminal window by pressing Ctrl  + Alt + T or Ctrl + Shift + T on the keyboard. Then, use the update command to check for updates.

sudo apt-get update

When Debian Linux is done checking for updates, you will be able to install the latest software upgrades, including Wine 5.0, from the WineHQ software repository using the upgrade command.

sudo apt-get upgrade -y

Didn’t have any Wine upgrades? If so, you likely didn’t install Wine 4.0 from the official WineHQ software repository on Debian, and instead are using the version of Wine included in the “Main” software repository. To upgrade to 5.0, follow the step-by-step instructions below.

Step 1: Uninstall the Debian version of Wine using the remove command below.

sudo apt remove wine --purge

Step 2: Uninstall any remaining Wine dependencies on the system using the autoremove command.

sudo apt autoremove

Step 3: Download and add the WineHQ software key to Debian using the wget and apt-key commands.

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

Step 4: Add the official WineHQ software repository to your Debian Linux PC using the add-apt-repository command.

Debian 9 Stretch -  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/debian/ stretch main'
Debian 10 Buster - sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main'

Step 5: Run the update command to refresh the software sources on your Debian Linux PC, which will set up the WineHQ repo.

sudo apt-get update

Step 6: Install Wine 5.0 on your Debian PC to finish up the process.

sudo apt-get install winehq-stable

Arch Linux installation instructions

Arch Linux is a bleeding-edge operating system. What does “bleeding-edge” mean? It means that the OS gets fast, consistent updates right away, without much testing. This means that if you want the latest version of Wine (version 5.0), you will not have to wait long.

To upgrade to Wine 5.0 on your Arch Linux PC, you need only do a software update with the Pacman command below.

sudo pacman -Syyu

Didn’t get an update to Wine on your Arch system? You may not have it installed. To install 5.0 on Arch, do the following.

sudo pacman -S wine

Fedora installation instructions

Fedora Linux is very much like Arch Linux. Updates come quick and fast, including new releases of Wine. If you’re clamoring for Wine 5.0 on your Fedora PC, run an update using Gnome Software or the terminal.

Alternatively, if you prefer to get Wine updates directly from WineHQ, open up a terminal window by pressing Ctrl + Alt + T or Ctrl + Shift + T on the keyboard, and follow the instructions below.

Step 1: Subscribe to the WineHQ software repository using config-manager.

Fedora 31 - dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/31/winehq.repo
Fedora 30 - dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/30/winehq.repo

Step 2: Install the software using the dnf install command.

sudo dnf install winehq-stable

OpenSUSE installation instructions

Are you using OpenSUSE and want to get Wine 5.0? Unfortunately, WineHQ does not support OpenSUSE directly. As a result, if you want to upgrade, your best bet is to upgrade to OpenSUSE Tumbleweed. It is in the official upgrade path and will install like a normal update.