Magazine

How to Install Wine on Linux, CentOS and Fedora

Posted on the 14 April 2023 by Jitendra Vaswani @JitendraBlogger

Wine is an open source application for Linux that enables users to run Windows Application on Unix/Linux operating system. Wine has widely used the application on Linux OS because of its great features.

That’s why the Wine team keeps releasing their new versions every two weeks to solve bugs and with some additional improvements. To know about the changes and improvements of Wine then you can visit here.

We all know Linux, CentOS and Fedora are command based operating system, so If you want to install any application in Unix operating system then you have to know which commands are to be used.

In this article, I will guide you the simplest way to install the latest version of Wine in Linux, CentOS and Fedora using commands.

Follow the steps on “How to install Wine on Linux, CentOS and Fedora“.

Step by Step Guide on How to install Wine on Linux, CentOS and Fedora :

Step 1: First you have to install dependency packages. Install them using YUM command. Open the terminal by pressing “Ctrl+Alt+T” to execute following commands in the open terminal:

# yum -y install libX11-devel freetype-devel flex bison

Step 2: Now, you have to run command for downloading the latest version of Wine on your Linux based operating system. The file will be downloaded in /tmp directory (by default no need to change) as a normal user. Execute the following command:

$ cd /tmp
$ wget http://garr.dl.sourceforge.net/project/wine/Source/wine-1.5.26.tar.bz2

Step 3: After downloading you have to extract wine from the specified folder, for that you have to execute the following command:

$ tar -xvf wine-1.5.26.tar.bz2 -C /tmp/

Step 4: Now, you have to install Wine on your operating system, just run as a normal user and note that it can ask root password in between the installation. The installation will take up to 20-30 minutes. Don’t be in a hurry, wait for the installation to complete. Run the following command:

$ cd wine-1.5.26/
$ ./tools/wineinstall

Step 5: Once the installation is complete run the “winecfg” configuration tool for KDE or GNOME desktop to see the supported configuration. In case, if you don’t have then you can install it by using the below command as the root user.

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

Step 6: Once you have installed the X Window System, run the command as a normal user to see the wine configuration.

$ winecfg

Step 7: Now, all the process is completed and I hope you have also successfully installed Wine so now it’s time to run it. To run Wine, you must specify the full path to the executable program. For example, shown below:

$ wine notepad
$ wine notepad.exe
$ wine c:\windows\notepad.exe

The above is the complete guide to install Wine on Linux, CentOS and Fedora, if you face any problem or error regarding it then share your comments below by the comment form so that we can help you to solve your problem easily and quickly!


Back to Featured Articles on Logo Paperblog