Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install Wine 5.0 on CentOS, RHEL and Fedora - DesignLinux

Aug 29 2020
designlinux 0 Comments

Wine is an open-source and free application for Linux that enables users to run any windows based application on Unix/Linux like operating system. Wine team keeps releasing their versions in every two weeks.

Finally, the Wine team proudly announced the stable release of 5.0.2 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 7,400 individual changes. It includes a large number of enhancements that are recorded in the release notes below. The main highlights are:

  • Builtin modules in PE format.
  • Multi-monitor support.
  • XAudio2 reimplementation.
  • Vulkan 1.1 support.
  • Various bug fixes.

For a complete summary of major changes, See the release notes of Wine 5.0 at https://www.winehq.org/announce/5.0.2

Related Article: How to Install Wine in Debian, Ubuntu and Linux Mint

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

On this page

  • Install Wine from Source Code on CentOS and RHEL
  • Install Wine on Fedora Linux Using Wine Repository
  • How to Use Wine in CentOS, RHEL, and Fedora

Installing Wine Using Source Code in CentOS and RHEL

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
Note: On CentOS/RHEL 8 versions, yum package manager no longer in use, you should use dnf command.
# 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 https://dl.winehq.org/wine/source/5.0/wine-5.0.2.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-5.0.2.tar.xz -C /tmp/

Step 4: Compiling Wine from Sources in CentOS and RHEL

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-5.0.2/
$ ./configure --enable-win64
$ make
# make install			[Run as root User]

---------- On 32-bit Systems ---------- 
$ cd wine-5.0.2/
$ ./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 32 ---------- 
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/32/winehq.repo
# dnf install winehq-stable

---------- On Fedora 31 ---------- 
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/31/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            [On CentOS/RHEL 8]
# yum yum groupinstall "GNOME Desktop"    [On CentOS/RHEL 7]

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 and meanwhile do share your comments using our below form.

Related

Tags: CentOS Tips, Fedora Tips, RHEL Tips, wine for linux

How to Start, Stop, or Restart Apache Service

Prev Post

How to Install Wine 5.0 on Debian, Ubuntu and Linux Mint

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 1
  • 652
  • 1,055,424

DesignLinux.com © All rights reserved

Go to mobile version