Saminnet-Search Article Wiki Forum Piwigo SNS Cloud vtiger Sugar
Wine-4 in CentOS-7

Wine-4 in CentOS-7

Wineis 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 ofWine 4.0and made available for download in source and binary packages for various distributions such asLinux,WindowsandMac.

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

  • Vulkan support.
  • Direct3D 12 support.
  • Game controllers support.
  • High-DPI support on Android.

For a complete summary of major changes, See the release notes ofWine 4.0athttp://www.winehq.org/announce/4.0

In this article we will guide you a simplest way to install the latest release ofWine 4.0version inRHEL 7.x/6.x,CentOS 7.x/6.xandFedora 28-29using source code (difficult and only suitable for experts) and epel repository (easy and recommended for new users).

Installing Wine 4.0 Using Source Code

Step 1: Installing Dependency Packages

We need to install 窶Development Tools窶 with some core development tools such asgcc,flex,bison,debuggersetc. these software窶冱 are must required to compile and build new packages, install them usingYUM command.

# yum -y groupinstall 'Development Tools'
# yum install libX11-devel freetype-devel zlib-devel libxcb-devel libxslt-devel libgcrypt-devel libxml2-devel gnutls-devel libpng-devel libjpeg-turbo-devel libtiff-devel gstreamer-devel dbus-devel fontconfig-devel

Note: OnFedora 22+versions,yumpackage manager no longer in use, you should usednfinstead yum in the command below.

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

Read more aboutLearn dnf command with these 27 examples.

If you are using latest version of Fedora 28 or Fedora 29, you can install Wine 4.0 using official Wine repository as shown.

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

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

Step 2: Downloading Wine 4.0

Download the source file usingwget commandunder/tmpdirectory as a normalUser.

$ cd /tmp
$ wget  https://dl.winehq.org/wine/source/4.0/wine-4.0.tar.xz

Step 3: Extracting Wine 4.0

Once the file is downloaded under/tmpdirectory, use the belowtar commandto extract it.

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

Step 4: Installing Wine 4.0 in Linux

It is recommended to compile and buildWineinstaller as a normalUser. Run the following commands as normal user.

Note: The installer might take up-to20-30minutes and in the middle it will ask you to enterrootpassword.

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

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

Install Wine Using EPEL Repository

Note:If you don窶冲 want to mess with these all source code compilation and installation, there is an easy way using epel repository, but the available version of wine bit older.

Let窶冱 first install and enableEPEL repositoryto install wine as shown:

# yum install epel-release
# yum install wine

Once the installation completes run the 窶winecfg窶 configuration tool fromKDEorGNOMEdesktop to see the supported configuration. If you don窶冲 have any of the desktop, you can install it by using the below command as root user.

# yum groupinstall "X Window System" "GNOME Desktop Environment"
OR
# yum groupinstall "X Window System" "KDE (K Desktop Environment)"

# yum groupinstall "GNOME Desktop" [On CentOS 7]

# yum groupinstall "Server with GUI" [On RHEL 7]

Once theX Window Systeminstalled, run the command as normal user to see wine configuration.

$ winecfg 
Winecfg Configuration

Winecfg Configuration

Step 5: Running Wine 4.0

To run theWine, you must specify the full path to the executable program or program name as shown in 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 wine team will soon fix all bugs in their upcoming version and meanwhile do share your comments using our below form.

Add comment


Articles by Date

Category Database

TweetTweet Share on LinkedInShare on LinkedIn Share on Google+Google+ Submit to RedditReddit Publish on WordPress WordPress Send emailSend email