In this article we are going to learn How to install Wine in Ubuntu. Wine is a open source application can be used to install Microsoft Windows applications in Linux operating system. Initially the Wine is developed by Alexandre Julliard on year 1993 using C & Java programming language and released under GNU v2 License. Wine is a cross platform application supports on operating systems like Linux, Unix, FreeBSD, MacOS.
Normally if you want to install MS windows application’s in Linux you might thinking about installing the windows OS virtually in Linux and install all application’s in that. but this process consumes more spaces and also memory. But Wine intigrates windows applications directly in Linux and saves lot’s of memory and spaces. Wine supports various windows applications, Games, Graphic design softwares and so on. Here in this article we are going to install the most stable version of Wine i.e. Wine in Ubuntu.
Follow the below steps to install Wine in Ubuntu:
As a first step you have to add 32 Bit architecture using below command if you are using 64 Bit of Ubuntu operating system. This will help you to install 32 Bit of windows applications in your 64 bit operating system.
[email protected]:~$ sudo dpkg --add-architecture i386 # Add 32 Bit Architecture
Now we have to download and install Wine Release key package. use the below command to download the Release key from official website of Wine.
[email protected]:~$ wget https://dl.winehq.org/wine-builds/Release.key # Download Release Key for Wine --2017-10-14 23:29:58-- https://dl.winehq.org/wine-builds/Release.key Resolving dl.winehq.org (dl.winehq.org)... 18.104.22.168, 22.214.171.124, 126.96.36.199, ... Connecting to dl.winehq.org (dl.winehq.org)|188.8.131.52|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3122 (3.0K) [application/pgp-keys] Saving to: ‘Release.key’ Release.key 100%[=====================================================================================>] 3.05K --.-KB/s in 0s 2017-10-14 23:29:59 (62.9 MB/s) - ‘Release.key’ saved [3122/3122]
As you can see below I have downloaded the Release key file for Wine application.
[email protected]:~$ ls Release.key Release.key
Use the below command to add Release Key repository to your Ubuntu repository list.
[email protected]:~$ sudo apt-key add Release.key # Add Release Key Repository OK
Now add the repository using below command to download and install Wine builds for Ubuntu operating system.
[email protected]:~$ sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
After all above steps to let’s update the packages and repositories of Ubuntu using below command to take effect.
[email protected]:~$ sudo apt-get update # Update Packages & Repositories Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Get:5 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease [4,701 B] Get:6 https://dl.winehq.org/wine-builds/ubuntu xenial/main amd64 Packages [19.2 kB] Get:7 https://dl.winehq.org/wine-builds/ubuntu xenial/main i386 Packages [19.0 kB] Fetched 349 kB in 1min 32s (3,784 B/s) Reading package lists... Done
Now use the below command to install Wine stable version. You can directly run the command “sudo apt-get install winehq-stable” to install the winehq-stable package but by adding –install-recommends the command will install the winehq-stable package with all recommended packages and dependencies.
[email protected]:~$ sudo apt-get install --install-recommends winehq-stable # Install Wine Package
Now we have successfully installed the Wine Package. To configure it we have to run the below command.
[email protected]:~$ winecfg # Configure the Wine application
After run the above command, The application will prompt to install two more dependencies i.e. Wine Mono Installer and Wine Gecko Installer. So when it will prompt for the same just click on Install button to install the dependencies. Refer the snapshots below.
Install Wine Mono Installer :
Click on Install button to install Mono Installer Package.
Install Wine Gecko Installer :
Click on Install button to install Gecko Installer Package.
After installation of above package the Wine Configuration page will open. Here you have to select your preferred operating system from dropdown list. Refer the snapshot below.
Now we are ready with Wine Stable version and we can install any windows application using Wine. For testing purpose I am going to install the Windows version of VLC media player. Refer the Steps below.
Just download the VLC Media Player .exe file. Right Click on the Setup file and Click on Wine Windows Program Loader.
After above step the VLC media player installation process will start. the installation steps are very simple. Here below I have mentioned possible snapshots.
Snap : 1
Snap : 2
Snap : 3
Also Read – How to Install VLC Media Player on Ubuntu
That’s all, In this article, we have explained the Installation of Wine In Ubuntu. I hope you enjoy this article. If you like this article, then just share it. If you have any questions about this article, please comment.