How to Install Wine 4.8 (Development Release) in Linux

Wine, a most popular and powerful open source application for Linux, that used to run Windows based applications and games on Linux Platform without any trouble.

WineHQ team, recently announced a new development version of Wine 4.8 (release candidate for the upcoming Wine 5.0). This new development build arrives with a number of new important features and 44 bug fixes.

Wine team, keep releasing their development builds almost on weekly basis and adding numerous new features and fixes. Each new version brings support for new applications and games, making Wine a most popular and must have tool for every user, who want to run Windows based software in a Linux platform.

According to the changelog, following key features are added in this release:

  1. Support building most programs in PE format.
  2. Unicode data updated to Unicode 12.0.
  3. Joystick support improvements.
  4. Default to non-PIC builds on i386.
  5. Various bug fixes.

For more in-depth details about this build can be found at the official changelog page.

This article guides you how to install most recent development version of Wine 4.8 on Red Hat and Debian based systems such as CentOS, Fedora, Ubuntu, Linux Mint and other supported distributions.

Installing Wine 4.8 on Linux

Unfortunately, there are no official Wine repository available for the Red Hat based systems and the only way to install Wine, is to compile it from source.

To do this, you need to install some dependency packages such as gcc, flex, bison, libX11-devel, freetype-devel and Development Tools, etc. These packages are must required to compile Wine from source.

Install Wine on RedHat, Fedora and CentOS

Let’s install them using following YUM command on the respective distributions.

# yum -y groupinstall 'Development Tools'
# yum -y install flex bison libX11-devel freetype-devel libxml2-devel libxslt-devel prelink libjpeg-devel libpng-devel

Next, switch to normal user (here my username is ‘tecmint‘) and download the latest development version of Wine (i.e. 4.8) and extract the source tallball package using the following commands.

# su tecmint
$ cd /tmp
$ wget https://dl.winehq.org/wine/source/4.x/wine-4.8.tar.xz
$ tar -xvf wine-4.8.tar.xz -C /tmp/

Now, it’s time to compile and build Wine installer using the following commands as normal user on respective Linux architectures. If you don’t know your Linux distribution architecture, you can read this article to find out that your Linux System is 32-bit or 64-bit.

Note: The installation process might take up-to 15-20 minutes depending upon your internet and hardware speed, during installation it will ask you to enter root password.

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

Install Wine on Fedora

On Fedora, you can use official Wine repository to install wine packages as shown:

----------- On Fedora 30 -----------
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/30/winehq.repo
# dnf install winehq-devel   [Development branch]
# dnf install winehq-stable  [Stable branch]
----------- On Fedora 29 -----------
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/29/winehq.repo
# dnf install winehq-devel   [Development branch]
# dnf install winehq-stable  [Stable branch]

Install Wine On Ubuntu and Linux Mint

Under Ubuntu and Linux Mint based systems, you can easily install the latest development build of Wine using the official PPA.

Open a terminal and run the following commands with sudo privileges to download and add the new key.

$ sudo dpkg --add-architecture i386    [Enable 32-bit Arch]
$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key

Now install Wine on Ubuntu and Linux Mint.

----------------- On Ubuntu 19.04 ----------------- 
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

----------------- On Ubuntu 18.10 ----------------- 
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

----------------- Ubuntu 18.04 & Linux Mint 19.x ----------------- 
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

----------------- Ubuntu 16.04 & Linux Mint 18.x ----------------- 
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

Install Wine On Debian Systems

On Debian systems, you should follow below instructions to install latest WineHQ development builds.

First, enable 32-bit packages, then download and install key which is used to sign packages.

$ sudo dpkg --add-architecture i386  [Only on 64-bit systems]
$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key

Next, add the following repository to /etc/apt/sources.list file as per your Debian version.

----------------- Debian 8 (Jessie) ----------------- 
deb https://dl.winehq.org/wine-builds/debian/ jessie main

----------------- Debian 9 (Stretch) ----------------- 
deb https://dl.winehq.org/wine-builds/debian/ stretch main

----------------- Debian 10 (currently Testing) (Buster) ----------------- 
deb https://dl.winehq.org/wine-builds/debian/ buster main

Now update the package repository database and install WineH! development branch as shown.

$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

For other Linux distributions, the installation instructions can be found at https://www.winehq.org/download.

How to Use Wine to Start Windows Applications

Once the installation completes successfully, you can install or run any windows based applications or games using wine as shown below.

On 32-Bit Systems
$ wine notepad
$ wine notepad.exe 
$ wine c:\windows\notepad.exe
On 64-Bit Systems
$ wine64 notepad
$ wine64 notepad.exe 
$ wine64 c:\windows\notepad.exe

Note: Please remember, this is a development build and cannot be installed or used on production systems. It is advised to use this version only for testing purpose.

If you’re looking for a most recent stable version of Wine, you can go through our following articles, that describes how to install most stable latest version on almost all Linux environments.

  1. Install Wine 4.0 (Stable) in RHEL, CentOS and Fedora
  2. Install Wine 4.0 (Stable) in Debian, Ubuntu and Mint
Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

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

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

48 Responses

  1. Dmitriy says:

    sudo apt-get install -y wine1.7 winetricks
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    winetricks is already the newest version.
    wine1.7 is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    wine –version
    wine-1.7.38

    Why old version? How to update to latest?

  2. Ramin says:

    Dear Ravi,
    Thanks for this article.
    I have installed Centos 64 bit. I installed wine. But it return me command not found.
    Do I need enter command ./tools/wineinstall on 64 bit Centos?
    Thank in advanced!

    • Ravi Saive says:

      @Ramin,
      Which CentOS version you’ve installed? have you followed 64-bit wine installation steps correctly? what error you getting? can you post here that error message, so that I can help you out…

  3. Linux User says:

    Why don’t we have subscribe to comments option here or will I get the notifications automatically

  4. Linux User says:

    Well written article but in which version of linux have you checked it?

    RHEL 6.0 initial commands work fine till the normal extraction though I was wondering when we were already in /tmp then why we used the -C option?

    on 64 bit system ./configure –enable-win64 gives many yes and many no, so not sure if it worked fine or not. When I do #make then it says “No target specified and no make file found” I also got an error similar to Christian and when I ran #yum install xorg xlib xfree64, can’t say if its right for 64 bit then it says no package found. What to do next? Do I need to configure any special repos for this as I was installing from DVD itself as yum server.

    I was also wondering why we are getting Xorg error though I am in GUI mode and how come one be in GUI mode without X11?

    yum install “Development Tools’ say no package available in CentOS 7?

    though apt-get seems to work fine in Debian 7.7

    • Ravi Saive says:

      I’ve checked under CentOS 6.3 and 6.5 32-bit systems, but to be frank never tried on 64-bit systems. Thanks for bringing to our notice, we will surely give a try on CentOS 7.0 and will update you with the new instructions on CentOS 7, till then stay tuned…

      • Linux User says:

        I have not got any notifications so can’t say which plugin or what inbuilt system are you using?

        • Ravi Saive says:

          @Linud User,
          Did you’ve checked in spam folder? please check and update us….so we could add comment notification feature to the comment box..

      • Linux User says:

        I liked your frankness and appreciate it along with other articles. As a reader would suggest you to use 64 bit systems (as it is only used in servers) atleast if not the latest versions as you know its all about upstart & systemd now.

        I was also wondering why and from where you used the 64 bit command if not tested yet? You guys are doing good but the reliability is about the tested commands and procedure for Linux blogs so that the readers should not have to work much after reading a blog post.

        Please also let me know if you have a post of installing Firefox in Debian 7.7 64 bit with or without Iceweasel.

        • Ravi Saive says:

          @Linux User,
          I do agree that, I didn’t tried on 64-bit, but the steps are taken from official wine doc and it worked for few users if you see comments..Anyway, give us some time we are installing CentOS 7 64-bit OS for wine testing, will udapte the instructions in the artilce, and about Firefox the article in progress will publish soon…..thanks for being royal reader :)

        • Linux User says:

          I did check that and its not there so people are not coming back for discussion if you have noticed and Linux is impossible without discussion. I wonder if you have a separate forum for this?

          Its not possible even for me to specially open this page to check the replies and hence a comment feature box is required.

          • Ravi Saive says:

            @linuxx,
            Thanks for such good tip, as we haven’t enabled “comment notify” feature in our site yet…but we surely enable this by today…this way we could keep user engagement ON….

  5. Skirlou says:

    sudo apt-get install -y wine —> will install wine 1.6.2

    Be sure to remove the blank between ‘wine’ and ‘1.7’ as shown upper on this page.
    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get update
    sudo apt-get install -y wine1.7 winetricks

    About= wine 1.7.30

  6. Parker says:

    “apt-get install wine 1.7 winetricks” – it’s a bad command, please fix it. what’s more – it won’t work on Debian!

  7. RhceNippon says:

    Hi,
    Can we unmount the /proc partiton ?

  8. Christian says:

    Hi all.
    Sounds like on my configuration (CentOs 5.6 i386) I can’t make the code :

    checking for X… no
    configure: error: X development files not found. Wine will be built
    without X support, which probably isn’t what you want. You will need
    to install development packages of Xlib/Xfree86 at the very least.
    Use the –without-x option if you really want this.

    trying a make with the option does not work too.

    Any idea ?
    Christian.

  9. Vijay says:

    Hi all,

    you are posted articles are good.
    most of people are using windows OS, because of MS Office and easy user interface. If all windows related software can install in linux , every one can try to migrate to linux. this is my personal opinion.
    today will try to MS Office and update here.

  10. Kiran Varma says:

    Hi Ravi,

    All the articles posted by you guys are really awesome great work wanted some more.

    Can you please let me know the command to list the largest file in the entire / partition in Ubuntu.

    Awaiting for your reply.

    • Ravi Saive says:

      You can use the find command to find out largest file size in / partition, here is the comand you can use to find out large files between 100MB to 500MB.

      # find / -size +100M -size -00M
      

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.