Linux

How to Install Wine on RHEL-based Linux Distributions

Wine is an open-source and free application for Linux that enables users to run any windows based software and games on Unix/Linux-like operating system.

Recently, the Wine team proudly announced the stable release of 7.0 and made available for download in source and binary packages for various distributions such as Linux, Windows and Mac.

This release describes a year of development effort and over 9,100 individual changes, which includes a large number of enhancements that are recorded in the release notes below. The main highlights are:

  • Most modules converted to PE format.
  • Greater theming support, with a bundled theme for a more modern look.
  • Largely improved HID stack and joystick support.
  • New WoW64 architecture.
  • Various bug fixes.

In this article, we will guide you on the simplest way to install the latest release of Wine 7.0 version in RHEL-based distributions such as CentOS Stream, Rocky Linux and AlmaLinux using source code (difficult and only suitable for experts) and on Fedora Linux using official wine repository (easy and recommended for new users).

Installing Wine Using Source Code in RHEL Systems

Step 1: Installing Dependency Packages

We need to install ‘Development Tools‘ with some core development tools such as GCC, flex, bison, debuggers, etc. this software is must required to compile and build new packages, install them using YUM command.

# yum -y groupinstall 'Development Tools'
# yum 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
# dnf -y groupinstall 'Development Tools'
# dnf -y 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 2: Downloading the Wine Source Code

Download the source file using wget command under /tmp directory as a normal User.

$ cd /tmp
$ wget http://dl.winehq.org/wine/source/7.0/wine-7.0.tar.xz

Step 3: Extracting Wine Source Code

Once the file is downloaded under /tmp directory, use the below tar command to extract it.

$ tar -xvf wine-7.0.tar.xz -C /tmp/

Step 4: Compiling Wine from Sources

It is recommended to compile and build a Wine installer as a normal User. Run the following commands as a normal user.

Note: The installer might take up to 20-30 minutes and in the middle, it will ask you to enter the root password.

---------- On 64-bit Systems ---------- 
$ cd wine-7.0/
$ ./configure --enable-win64
$ make
# make install			[Run as root User]

---------- On 32-bit Systems ---------- 
$ cd wine-7.0/
$ ./configure
$ make
# make install			[Run as root User]

Install Wine on Fedora Linux Using Wine Repository

If you are using the latest version of Fedora Linux, you can install Wine using the official Wine repository as shown.

---------- On Fedora 36 ---------- 
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/36/winehq.repo
# dnf install winehq-stable

---------- On Fedora 35 ---------- 
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/35/winehq.repo
# dnf install winehq-stable

How to Use Wine to Run Windows Apps & Games

Once the installation completes run the “winecfg” configuration tool from GNOME desktop to see the supported configuration. If you don’t have any of the desktops, you can install it by using the below command as the root user.

# dnf groupinstall workstation 
OR
# yum  groupinstall "GNOME Desktop"

Once the X Window System installed, run the command as a normal user to see wine configuration.

$ winecfg 
Winecfg Configuration
Winecfg Configuration

To run the Wine, you must specify the full path to the executable program or program name as shown in the example below.

--------- On 32-bit Systems ---------
$ wine notepad
$ wine c:\\windows\\notepad.exe
--------- On 64-bit Systems ---------
$ wine64 notepad
$ wine64 c:\\windows\\notepad.exe
Wine Running Windows Programs on Linux
Wine Running Windows Programs on Linux

Wine is not perfect, because while using wine we see so many programs crashes. I think the wine team will soon fix all bugs in their upcoming version meanwhile do share your comments using our below form.

linux Tips
linux news
linux hacks
linux tutorial
linux install
Source link

Related Articles

Leave a Reply

Your email address will not be published.

Back to top button