×

Install Wine on Ubuntu 20.04 LTS - Step by step process to do it ?

This article covers how to install Wine on Ubuntu 20.04. We used the WineHQ repositories and downloaded them directly for their installation.
Users can use it now for running all Windows-based applications.

To Install Wine from a Standard Ubuntu Repository (recommended):
We recommend that you install Wine on your system through the standard Ubuntu repository, as this way you can have a more stable version on your system.
1. 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
2. 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.
3. For a 32-bit Ubuntu system, you can use the following command:
$ sudo apt install wine32
4. You can verify the version of Wine through the following command:
$ wine --version

To Install Wine 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.
On the machine with internet, add the WineHQ repository and run apt update.
Next, cache just the packages necessary for installing wine, without extracting them:
sudo apt-get clean
sudo apt-get --download-only install winehq-devel
sudo apt-get --download-only dist-upgrade

Copy all of the .deb files in /var/cache/apt/archives to a USB stick:
cp -R /var/cache/apt/archives/ /media/usb-drive/deb-pkgs/

Finally, on the machine without internet, install all of the packages from the flash drive:
cd /media/usb-drive/deb-pkgs
sudo dpkg -i *.deb


Install Wine on Linux Mint 20 - Step by step process to do it ?

This guide will show you steps to install Wine on Linux Mint 20.  Also, you will learn how to remove it once you no longer require this software on your system.

Wine is an open-source, free and easy-to-use program that enables Linux users to run Windows-based applications on Unix-like operating systems. 

Wine is a compatibility layer for installing almost all versions of Windows programs.

The APT is the tool, commonly used to install packages, remotely from the software repository. 

Basically, it's a simple command based tool that you use to install files/software. Complete command is apt-get and it's the easiest way to install files/Software packages.


To uninstall a program in Linux:

To uninstall a program, use the “apt-get” command, which is the general command for installing programs and manipulating installed programs. 

For example, the following command uninstalls gimp and deletes all the configuration files, using the “ -- purge” (there are two dashes before “purge”) command.


How do I delete apt repository?

Whenever you add a repository using "add-apt-repository" command, it will be stored in /etc/apt/sources. list file. 

To delete a software repository from Ubuntu and its derivatives, just open the /etc/apt/sources. 

List file and look for the repository entry and delete it.