How To Install WineHQ on Rocky Linux 9

Install WineHQ on Rocky Linux 9

In this tutorial, we will show you how to install WineHQ on Rocky Linux 9. For those of you who didn’t know, WineHQ is a program that can be used to run Windows software on Linux. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on the fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop. In general, Wine is a handy tool for anyone who needs or wants to run Windows applications on another platform. Recently, the Wine team proudly announced the stable release of 7.0 and made it available for download in source and binary packages for various distributions.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the WineHQ on Rocky Linux. 9.

Prerequisites

  • A server running one of the following operating systems: Rocky Linux 9.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo useror access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install WineHQ on Rocky Linux 9

Step 1. The first step is to update your system to the latest version of the package list. To do so, run the following commands:

sudo dnf check-update
sudo dnf install dnf-utils

Step 2. Installing Required Build Tools.

Now run the following command below to install dependency packages:

sudo dnf install epel-release
sudo dnf config-manager --set-enabled powertools

Next, install the development tools:

sudo dnf groupinstall 'Development Tools'
sudo dnf install gcc libX11-devel freetype-devel zlib-devel libxcb-devel libxslt-devel libgcrypt-devel libxml2-devel gnutls-devel libpng-devel libjpeg-turbo-devel libtiff-devel dbus-devel fontconfig-devel

Step 3. Installing WineHQ on Rocky Linux 9.

By default, WineHQ is not available on Rocky Linux 9 base repository. Now run the following command below to download the latest version of WineHQ to your Rocky Linux system:

wget https://dl.winehq.org/wine/source/7.x/wine-7.1.tar.xz

Next, extract your downloaded file with the following command:

tar xvf wine-*.tar.xz

After that, compile and install Wine from the source code:

cd wine-*/
./configure --enable-win64
make
sudo make install

To confirm that it is configured on the system successfully, let’s check its version:

wine64 --version

Finally, you can start installing Windows programs on your Rocky Linux with the syntax of it is like this:

wine64 ./path-to-your file.exe

Congratulations! You have successfully installed WineHQ. Thanks for using this tutorial for installing the WineHQ on your Rocky Linux 9 system. For additional help or useful information, we recommend you check the official WineHQ website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!