19 C
Jaipur
Wednesday, October 28, 2020

How to Install Wine 5.0 on CentOS, RHEL and Fedora

Must read

Best Tools to Create a Bootable Linux USB Drive

Bootable USB is a USB drive that is used to boot up a computer or laptop for installation on an operating system.Unlike Windows, Linux...

Samsung Galaxy S21 May Ditch Bundled Earphones And Charger Like Apple

A few weeks ago, Apple made headlines after announcing that the iPhone 12 won’t ship with a charger or a pair of earphones. And now it...

China launches crackdown on mobile web browsers, decries ‘chaos’ of information – Latest News

China's top cyber authority said it would carry out a "rectification" of Chinese mobile internet browsers to address what it called social concerns over...

cellphone: Japan unveils plan to prod carriers to cut cellphone charges – Latest News

Japan on Tuesday laid out a plan for reducing consumers' cellphone charges, as the government stepped up its bid to promote competition in the...

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

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).

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
# 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

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:windowsnotepad.exe
--------- On 64-bit Systems ---------
$ wine64 notepad
$ wine64 c:windowsnotepad.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.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Source link

- Advertisement -

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Best Tools to Create a Bootable Linux USB Drive

Bootable USB is a USB drive that is used to boot up a computer or laptop for installation on an operating system.Unlike Windows, Linux...

Samsung Galaxy S21 May Ditch Bundled Earphones And Charger Like Apple

A few weeks ago, Apple made headlines after announcing that the iPhone 12 won’t ship with a charger or a pair of earphones. And now it...

China launches crackdown on mobile web browsers, decries ‘chaos’ of information – Latest News

China's top cyber authority said it would carry out a "rectification" of Chinese mobile internet browsers to address what it called social concerns over...

cellphone: Japan unveils plan to prod carriers to cut cellphone charges – Latest News

Japan on Tuesday laid out a plan for reducing consumers' cellphone charges, as the government stepped up its bid to promote competition in the...

oneplus 7t: Amazon sale: OnePlus 7T selling at Rs 32,999 in upgrade deal

OnePlus 7T has got a price cut of Rs 7,000 during the Amazon Great Indian Festival sale. The handset is available at a...