Install Wine

  • Search for Wine Click the Wine entry and then click Install Allow the installation to complete.
  • Fortunately, Linux OS allows you to install your favorite Windows applications and games using the Wine program. Wine is a computability layer that enables you to install and run Windows programs on Linux systems. Initially, Wine does not support much of Windows applications, but now it supports a large number of Windows applications.

Translations of this page:简体中文Nederlands

Installing Wine from the default Ubuntu repositories is the easiest option. However, be aware that it may not provide the latest version. Start by updating the apt repository package list. This ensures the latest stable version of Wine is installed. Sudo apt upgrade. To install 64-bit Wine, enter the following: sudo apt install wine64. Run the following command in the Terminal as a root user in order to install Wine on a 64-bit version of Ubuntu: $ sudo apt install wine64 Please enter y when you are prompted with a y/n option for installation. After that, the Wine application will be installed and ready for use.

Installing WineHQ packages

The WineHQ repository key was changed on 2018-12-19. If you downloaded and added the key before that time, you will need to download and add the new key and run sudo apt update to accept the repository changes.

Ubuntu 18.04/Linux Mint 19.x do not provide FAudio, which is a dependency of current Wine. Follow the instructions in https://forum.winehq.org/viewtopic.php?f=8&t=32192 to install FAudio from the OBS. (FAudio packages for Ubuntu 19.10 and later are in the distro's universe repository.)

If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

If your system is 64 bit, enable 32 bit architecture (if you haven't already):

Download and add the repository key:

Add the repository:

For this version:Use this command:
Ubuntu 21.04sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main'
Ubuntu 20.10sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main'
Ubuntu 20.04

Linux Mint 20.x

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
Ubuntu 18.04

Linux Mint 19.x

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

Update packages:

Wine

Then install one of the following packages:

Stable branch
Development branch
Staging branch

If apt complains about missing dependencies, install them, then repeat the last two steps (update and install). See the FAQ entry on dependency errors for tips on troubleshooting dependency issues.

If you have previously used the distro packages, you will notice some differences in the WineHQ ones:

  • Files are installed to /opt/wine-devel, opt/wine-stable, or /opt/wine-staging (depending on which version you installed).
  • Menu items are not created for Wine's builtin programs (winecfg, etc.), and if you are upgrading from a distro package that had added them, they will be removed. You can recreate them yourself using your menu editor.
  • Binfmt_misc registration is not added. Consult your distro's documentation for update-binfmts if you wish to do this manually.
  • WineHQ does not at present package wine-gecko or wine-mono. When creating a new wine prefix, you will be asked if you want to download those components. For best compatibility, it is recommended to click Yes here. If the download doesn't work for you, please follow the instructions on the Gecko and Mono wiki pages to install them manually.
Install
  • Beginning with Wine 5.7, the WineHQ Ubuntu packages have an optional debconf setting to enable CAP_NET_RAW to allow applications that need to send and receive raw IP packets to do so. This is disabled by default because it carries a potential security risk, and the vast majority of applications do not need that capability. Users of applications that do need it can enable CAP_NET_RAW after installing Wine by running

and answering yes to the three questions. (Substitute devel, staging, or stable for <branch> in the above command.)


Installing without Internet

To install Wine on an Ubuntu machine without internet access, you must have access to a second Ubuntu machine (or VM) with an internet connection to download the Wine .deb package and its dependencies.

Install wine on mac

On the machine with internet, add the WineHQ repository and run apt update as described above.

Next, cache just the packages necessary for installing wine, without extracting them:

Copy all of the .deb files in /var/cache/apt/archives to a USB stick:

Finally, on the machine without internet, install all of the packages from the flash drive:

The same instructions can also be used for an offline installation of the `winehq-staging` packages.

Compiling WoW64

Ubuntu's implementation of Multiarch is still incomplete, so for now you can't simply install 32-bit and 64-bit libraries alongside each other. If you're on a 64-bit system, you'll have to create an isolated environment for installing and building with 32-bit dependencies. See Building Biarch Wine On Ubuntu for detailed instructions for Ubuntu using LXC, and Building Wine for general information.

See Also

  • Official WineHQ packages.
  • Multiarch in Wine build dependencies
Retrieved from 'https://wiki.winehq.org/index.php?title=Ubuntu&oldid=3769'

Wine is a very useful package that can be installed on any Linux distribution for running native Windows applications on Linux.

This package proves to be the best workaround for using all those applications on Linux that you normally enjoy within the Windows environment.

Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform Software Installation tasks on their Linux Server.

Download

In this context, we shall look into how to install Wine on CentOS 8.

However, if you want to see the method of installing this package on any other Linux distribution, then you can take a look at our article on Wine installation on Linux Mint 20 .


How to install Wine on CentOS 8 ?

If you wish to install Wine on CentOS 8, then you have to perform the following steps outlined below.


1. Download all the Required Packages and Dependencies

First, you will have to download the Development Tools for Wine for which you need to run the following command on CentOS 8:

During the installation of the Development Tools, you will have to provide your consent for once by typing 'y'.

The Development Tools will take around 20 minutes to download with a moderate Internet speed. Once the Development Tools will be downloaded successfully, you will see the 'Complete' message on your terminal.


After downloading the Development Tools, we will also download some other packages by running the command mentioned below:

Again, during the installation of these packages, you will be supposed to provide your consent for once by typing in 'y'.


2. Download the Source Code of Wine on CentOS 8

Now when all the required packages and dependencies for Wine have been downloaded successfully on your CentOS 8 system, it is the right time to download its source code with the command mentioned below:


3. Extract the Source Code of Wine on CentOS 8:

After successfully downloading the source code of Wine on our CentOS 8 system, we will extract it within a newly created directory named 'tmp' in our C drive.

This can be done if we will run the command stated below:

It will take a few seconds to extract all the sub-files and once the extraction process is complete, you will get the control of your CentOS 8 system back.


4. Compile the Source Code of Wine to install it on CentOS 8:

Now we need to compile this downloaded source code of Wine so that it can be installed on our CentOS 8 system.

For that, we will first have to change the default path of the terminal by navigating to the 'tmp' directory (the directory in which the source code files of Wine have been extracted).

We can navigate to this directory with the command shown below:

Once you are there in the 'tmp' directory, you need to run the following command:

Since we had a 64-bit system that is why we have used the command stated above.

However, if you are working with a 32-bit system, then you can simply run the './configure' command to serve the very same purpose.

Now you will have to run the command stated below:

Once the execution of this command will complete, you will finally have to run the following command to complete the installation process of Wine on CentOS 8.


5. Verify the Installation of Wine on CentOS 8:

After following steps # 1 to 4, Wine will be successfully installed on your CentOS 8 system. You can confirm its installation by checking the installed version of Wine with the command shown below:


How to uninstall Wine from CentOS 8 ?

Whenever you want to remove Wine from your CentOS 8 system along with all of its packages and dependencies, you can simply run the command shown below:


[Need urgent assistance to install missing packages on CentOS system? We are available to help you today. ]


Conclusion

This article covers how to install Wine on CentOS 8. With the use of this package, you can easily use the native Windows applications on CentOS 8. However, you can also remove this package from your CentOS 8 system to conserve the memory whenever you want.


How to Install Wine 4 on CentOS 8:

Install EPEL Repos on CentOS 8

Install Wineth

Wine is not included in the default CentOS 8 repositories but however available on EPEL repos. Therefore, run the command below to install EPEL repos:

$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm


To run Wine on CentOS 8:

Wine command takes the following syntax.

$ wine program [arguments]

To obtain help on Wine usage;

$ wine --help

Install Wine On Mac

Consult man pages for Wine for more insight.

$ man wine

Before you can use Wine to run Windows applications, reboot your system to setup the Wine environment.

$ systemctl reboot

More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com