Install Wine 1.7 on a RedHat or Debian-Based System
Wine, the most popular and powerful software in Linux, can smoothly run Windows programs and games on the Linux platform.
This article teaches you how to install the latest Wine 1.7 on Red Hat and Debian systems like CentOS, Fedora, Ubuntu, and Linux Mint.
For more information about how to install the latest Wine 1.5.10 in Ubuntu 12.04, see
How to install and upgrade Wine 1.7.20 for Ubuntu or Linux Mint
Ubuntu 13.10 compilation and installation of Wine 1.7
Install Wine 1.7 in Linux
Unfortunately, there is no official Wine repository on the Red Hat-based system, so the only installation method is to compile from the source code. You need to install some dependent packages such as gcc, flex, bison, libX11-devel freetype-devel and Development Tools, which are used to compile Wine from source code. We can install them using the yum command.
On RedHat, Fedora, and CentOS
- # Yum-y groupinstall 'development tool'
- # Yum-y install flex bison libX11-devel freetype-devel
Next, download the latest development version (such as 1.7.21) and decompress it with the following command.
- $ Cd/tmp
- $ Wget http://citylan.dl.sourceforge.net/project/wine/Source/wine-1.7.21.tar.bz2
- $ Tar-xvf wine-1.7.21.tar.bz2-C/tmp/
Now, you need to compile and build the Wine installation program as a normal user. (Note: depending on the machine performance and network speed, the installation process takes 15-20 minutes, and the root password is required during the installation process .)
On a 32-bit System
- $ Cd wine-1.7.21/
- $./Tools/wineinstall
64-bit System
- $ Cd wine-1.7.21/
- $./Configure -- enable-win64
- $ Make
- # Make install
On Ubuntu, Debian, and Linux Mint
On Ubuntu-based systems, you can use the official PPA to easily install the latest Wine. Open a new terminal and run the following command with sudo.
- $ Sudo add-apt-repository ppa: ubuntu-wine/ppa
- $ Sudo apt-get update
- $ Sudo apt-get install wine 1.7 winetricks
Once installed, you can run Windows-based software and games as follows.
- $ Wine notepad
- $ Wine notepad.exe
- $ Wine c :\\ windows \ notepad.exe
Note: Do not use the development version in the production environment. We recommend that you use it only for testing purposes.
If you want to install the latest stable version of Wine, please refer to the following article, which describes how to install Wine in almost all Linux systems.
- Install Wine 1.6.2 (Stable) in RHEL, CentOS and Fedora
- Install Wine 1.6.2 (Stable) in Debian, Ubuntu and Mint
Reference