This article will show you how to install and run Wine on a Linux computer. Wine is a program that allows you to run Windows programs on a computer running a non-Windows operating system.
Part 1 of 3: How to Install Wine
Step 1. Open a terminal
Select "Terminal" in the system menu or in the list of installed programs.
- On most Linux distributions, you can press Ctrl + Alt + T to open a terminal.
- On some Linux distributions, the terminal line is at the top of the screen.
Step 2. Activate 32-bit architecture
If your computer has a 64-bit processor, enable 32-bit mode. For this:
sudo dpkg --add-architecture i386in the terminal and press ↵ Enter;
- enter the administrator password and press ↵ Enter.
Step 3. Link the computer bootloader to the Wine website
This will allow the computer to find the correct files to download. For this:
wget -ncand press ↵ Enter;
sudo apt-key add Release.keyand press ↵ Enter;
- enter the administrator password.
Step 4. Add the Wine repository to your list of repositories
Depending on your Linux distribution, enter the following command:
- Ubuntu -
- Mint -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
Step 5. Update the downloaded packages
sudo apt-get updateand press ↵ Enter.
Step 6. Select download
As of March 2018, the stable version of Wine can be downloaded by entering
sudo apt-get install --install-recommends winehq-stableand press ↵ Enter.
It is possible that future versions of Wine will support several different types of stable downloads
Step 7. Confirm the download
Type y and press ↵ Enter, then enter your administrator password (if prompted). Wine will begin downloading and installing on your computer.
Step 8. Wait for Wine to download and install
This will take 10 minutes.
Part 2 of 3: How to set up Wine
Step 1. Create a Windows home directory
winecfg, press ↵ Enter, and then look for the confirmation message “created the configuration directory 'home / name /.wine”.
If you are prompted to install any missing packages, click Install and wait for the packages to install
Step 2. Select your Windows version
Open the Windows Version menu at the bottom of the Wine Configuration window, and then select the Windows version (for example, Windows 7) that you want to use.
If this option is grayed out, first click on the Applications tab at the top of the window
Step 3. Click Apply
This button is at the bottom of the window. The settings will be saved.
Step 4. Click OK
This button is at the bottom of the window. The window will close.
Step 5. Download the Windows program in EXE format
Find the EXE file of the program you want (for example, 7-zip) and download it. Now you can install the program.
The Wine website provides a complete list of programs that are compatible with Wine
Part 3 of 3: How to install the program
Step 1. Open your Downloads folder
You will find it in the "Home" folder. You can also open the Downloads folder from the Applications menu.
Step 2. Find the downloaded EXE file
To do this, scroll through the contents of the "Downloads" folder.
Step 3. Right-click on the file
A dropdown menu will open.
Step 4. Click Open with Wine
It's near the top of the menu. The installation window will open.
Step 5. Click Install
It's at the bottom of the setup window. The installation of the program on your computer will start.
- To install some programs, you need to enter additional information.
- To change the folder where the program will be installed, click "⋯" on the right side of the window, and then select a different folder on your computer.
Step 6. Click Close when prompted
This option will become available when the program is installed.
Step 7. Run the program
Do this in the Applications section of the system menu.
- You can also install a Wine user interface called PlayOnLinux, which allows you to install, uninstall, and access Wine programs. To do this, open a terminal, when you install Wine, type
sudo apt install playonlinux, enter your password and confirm the download by entering y.
- Check Wine website regularly for updates.