Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Tutorials»How To Install Wine 5.1 on CentOS/RHEL 8

    How To Install Wine 5.1 on CentOS/RHEL 8

    RahulBy RahulOctober 20, 20192 Mins ReadUpdated:August 27, 2020

    With the increasing popularity of Linux desktops, There is another requirement occurred that we should have an application that can be used to run Windows applications. Windows has a long list of beautiful applications for users who are not available for Linux users. As we know that Linux does not support windows executable so WineHQ is a solution to run Windows applications and Linux systems.

    This article will help you to install Wine 5.1 Stable Release on RHEL based systems. The Fedora users can use official yum repository provided by Wine team for the installation of latest Wine packages.

    Step 1 – Prerequisite

    First of all, become root user on your CentOS 8 system. Then continue to the tutorial.

    sudo -i
    

    Wine required many development packages. First, we recommend upgrading all system packages using the following commands.

    dnf clean all
    dnf update
    

    Now install required packages for Wine using yum package manager using following commands.

    dnf groupinstall 'Development Tools'
    dnf install libX11-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 freetype-devel 
    

    Step 2 – Install Wine on CentOS 8

    RPM packages for wine are not available for the latest versions, So we need to download wine source code. Use the below commands to download it.

    cd /opt
    wget https://dl.winehq.org/wine/source/5.x/wine-5.1.tar.xz
    tar -Jxf wine-5.1.tar.xz
    cd wine-5.1
    

    Configure wine using one of the following commands based on your system architecture. This will set the installation environment for Wine according to your system.

    For 32-Bit Systems:
    ./configure
    
    For 64-Bit Systems:
    ./configure  --enable-win64
    

    Finally, run the make and make install command to compile the wine source and install it on your system.

    make
    make install
    

    Step 3 – Check Wine Version

    Use the following command to check the version of wine installed on your system

    On 32-Bit Systems:
    wine --version
    
    On 64-Bit Systems:
    wine64 --version
    

    How to Use Wine?

    To use wine we need to login to the CentOS/Fedora desktop. After that Download a windows executable (.exe) file like PuTTY on your system and open it with Wine as below screenshot or use following command.

    wine64 putty.exe
    

    Install Wine CentOS 8

    wine winehq
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow To Install Zend Framework on Ubuntu 18.04
    Next Article How to Fix ‘/usr/bin/dirmngr’: No such file or directory

    Related Posts

    (Resolved) userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

    Updated:May 10, 20221 Min Read

    How to Install Apache ActiveMQ on Ubuntu 22.04

    3 Mins Read

    How To Enable SSH Server on Ubuntu 22.04

    Updated:April 22, 20222 Mins Read

    How To Install LAMP Stack on Ubuntu 22.04 LTS

    Updated:April 20, 20225 Mins Read

    10 Best Linux Video Players in 2022

    Updated:February 18, 20226 Mins Read

    How to Switch Python Version in Ubuntu & Debian

    Updated:April 22, 20223 Mins Read

    7 Comments

    1. jason on January 22, 2021 10:46 pm

      when I get to the verification, “win64 –version”, i get the following:

      bash: wine64: command not found…
      Install package ‘wine-core’ to provide command ‘wine64’? [N/y] y

      * Waiting in queue…
      * Loading list of packages…. Failed to install packages: Could not depsolve transaction; 1 problem detected: Problem: conflicting requests
      – nothing provided SDL2(x86-64) needed by wine-core-4.0.4-1.el8.x86_64

      Reply
    2. Mike on December 23, 2020 7:47 pm

      Hi Rahul,

      How can I uninstall it ? I accidentally installed it as root.

      Reply
    3. Shashidhar cheekoti on November 22, 2020 1:49 pm

      thank you

      Reply
    4. tony on August 26, 2020 8:37 am

      Hello admin. I received an error when running them.
      The command: DNF install libX11-devel freetype-devel …
      when run is throws error fontconfig-devel so I changed command to two-line command.
      1. dnf 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
      2. dnf install freetype-devel.
      Then it working for me.
      What happened.

      Reply
    5. sdada on October 24, 2019 1:07 am

      It’s gstreamer1-devel !

      Reply
      • Alexander on October 24, 2019 11:45 pm

        Thank you!

        Reply
      • Sergio on December 4, 2019 9:36 am

        THANK YOU !!

        Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.