Archives For wine

Wine, the popular software for running Windows apps on Linux, macOS & BSD, released new development version 7.12 a day ago.

The new Wine 7.12 features theming support for Qt5 applications, bundled vkd3d upgraded to version 1.4, QWORD support in registry tools, and improved effect support in Direct2D.

As usual, there are various bug-fixes. And, this release includes fixes for Star Citizen, Total War: Shogun 2, Argentum 20 RPG Launcher, MetaTrader4, and more. See the release note for details.

Wine Configuration dialog

How to Install Wine 7.12 in Ubuntu:

Wine has an official apt repository that has made the package for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, as well as Linux Mint, Pop! OS, etc that based on the Ubuntu.

1. Firstly, open terminal by either pressing Ctrl+Alt+T shortcut key on keyboard, or searching from start menu.

2. When terminal opens, run the command below to enable 32-bit and https source support in case you don’t have them:

sudo dpkg --add-architecture i386 && sudo apt install apt-transport-https

3. Download & install the keyring:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor | sudo tee /usr/share/keyrings/winehq-archive.key

Type user password and hit Enter if the command stuck with blinking cursor. And, it will output un-readable text as the picture shows

4. Then, setup the apt repository by downloading the file from winehq website and mv to ‘/etc/apt/sources.list.d’ directory. This can be done via single command below:

wget -O - https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -sc)/winehq-$(lsb_release -sc).sources | sudo tee /etc/apt/sources.list.d/winehq-$(lsb_release -sc).sources

NOTE: for Linux Mint and other Ubuntu based system, you have to replace $(lsb_release -sc) with Ubuntu codename (e.g., jammy, focal, bionic) that your system is based on.

5. Finally, update cache and install wine 7.12 via command:

sudo apt update
sudo apt install winehq-devel

6. After installation, run the command below to open configuration dialog, and install missing modules if asks.

winecfg

7. Finally, you can right-click on your EXE file and choose “Open With Wine Windows Program Loader” to start installing your Windows app. If installed successfully, you’ll be able to launch it like normal apps by searching from ‘Activities’ overview or app grid.

How to Remove Wine 7.12

To remove the package, open terminal and run command:

sudo apt remove --autoremove winehq-devel

To remove the apt repository, simply remove the source file by running command in terminal:

sudo rm /etc/apt/sources.list.d/winehq*.sources

To run Microsoft Windows applications in Ubuntu Linux, Wine or CrossOver (paid version) is a good choice. And here’s how to install and use Wine in Ubuntu 22.04 LTS.

In this tutorial, you’ll see 2 ways to install Wine in Ubuntu. Choose either one that you prefer.

Install Wine from Ubuntu repository:

Ubuntu included Wine package in its own repository, though it’s old. User may simply press Ctrl+Alt+T on keyboard to open terminal and run command to install it:

sudo dpkg --add-architecture i386 && sudo apt install wine

Type user password (no asterisk feedback) and hit Enter to authentication for sudo.

After installed package run winecfg in terminal to generate configuration file. And, run command to make link the .desktop file:

sudo ln -s /usr/share/doc/wine/examples/wine.desktop /usr/share/applications/

Finally, you may right-click on an EXE file to run via “Wine Windows Program Loader” option:

Install Wine from its official repository:

The Wine developer team provides an official apt repository for Debian/Ubuntu based systems. By releasing v7.6, it added Ubuntu 22.04 support.

1. Install Wine key

The repository now has updated with new method to install the key to follow Debian policy, as apt-key is deprecated. However, it’s still ASCII-armored key so far.

Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the single command to download the key, dearmor, and move to “/usr/share/keyrings” directory:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor | sudo tee /usr/share/keyrings/winehq-archive.key

Type user password and hit Enter if the command stuck with blinking cursor. And, it will output un-readable text as the picture shows:

2. Add Wine repository:

Next run the commands below one by one to download the repository setup file and move to “/etc/apt/sources.list.d” directory.

  • Download the source file:
    wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -sc)/winehq-$(lsb_release -sc).sources
  • Move it into “/etc/apt/sources.list.d”:
    sudo mv winehq-$(lsb_release -sc).sources /etc/apt/sources.list.d/

NOTE: This command is for Ubuntu only. “$(lsb_release -sc)” returns system’s code-name. For Linux Mint and other Ubuntu based system, replace it with jammy (22.04), focal (20.04) or bionic (18.04) depends on which Ubuntu edition your system is based on.

3. Update cache

Before installing any package from that repository, you need to refresh system cache by running command in terminal:

sudo apt update

4. Install Wine:

The Wine repository provides three Wine packages:

  • winehq-stable – the stable version (v7.0 so far)
  • winehq-devel – the latest development release.
  • winehq-staging – the testing version with patches applied on top of the corresponding wine-devel

Select install one of the packages by running command below in terminal:

  • To install the stable edition use command:
    sudo apt install winehq-stable
  • Install wine development release via:
    sudo apt install winehq-devel
  • Or install wine-staging via command:
    sudo apt install winehq-staging

NOTE: It does not re-build old packages for new Linux systems. winehq-stable so far is not available for Ubuntu 22.04, since the new LTS is released after wine stable 7.0. User may wait for the next stable release (v7.0.1 or v8.0).

After installation, right-click on your EXE file and start it via Wine program loader option. See if you app works with wine.

How to Remove Wine:

1. To remove the Wine package, simply open terminal and run commands:

sudo apt remove wine winehq-stable winehq-staging winehq-devel

There will be local configuration files and app data left under .wine and .local/share/applications. They are hidden folders, press Ctrl+H in file manager to toggle display and remove them as you want.

2. To remove the Wine repository, open terminal (Ctrl+Alt+T) and run command:

sudo rm /etc/apt/sources.list.d/winehq-jammy.sources

And remove the repository key via command:

sudo rm /usr/share/keyrings/winehq-archive.key

Finally apply changes by running sudo apt update to refresh system package cache.

Wine 7.4, the new development of the compatibility layer capable of running Windows apps on Linux, is out.

The new release bundled Vkd3d, 3D graphics library built on top of Vulkan, for its implementation of Direct3D 12.

Other changes include defaults to ‘Light’ theme, WineD3D, D3D12 and DXGI modules converted to PE, more large scale cleanups to support ‘long’ type. And, there more than a dozen of bug-fixes. See more here.

How to install Wine 7.4 in Ubuntu:

The official Wine repository provides the packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.10, Linux Mint 20, and their derivatives.

NOTE: Installing Wine Dev release will replace the stable package (if installed from same repository) in your system if any.

1. Enable 32 bit architecture

For modern 64-bit systems, you may first make sure the ability to install 32-bit app packages has been enabled.

To do so, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command:

sudo dpkg --add-architecture i386

2. Install the key:

To make your system trust the package from Wine repository, you have to download & install the key.

It’s can be done simply by running the command below in terminal:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Though the apt-key command is deprecated, it’s still working and the most efficient so far.

NOTE: The command may stuck with blinking cursor after downloading the key, if you run this command in another window or a few minutes after the last. It’s waiting for you to type password for ‘sudo’ authentication. Just type your password (no visual feedback) in mind and hit Enter.

3. Add Wine Repository:

Now in terminal window, run command to add the Wine repository (replace focal accordingly!):

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

NOTE: the command above is for ‘Ubuntu 20.04’ and ‘Linux Mint 20’ only!!! For other Ubuntu edition (check via lsb_release -a command), do change focal in the code with:

  • bionic for Ubuntu 18.04.
  • impish for Ubuntu 21.10.

Say you’re running Ubuntu 21.10, the command will be:

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

4. Install Wine 7.4:

Finally, refresh system package cache by running command:

sudo apt update

And, install Wine 7.4 via:

sudo apt install --install-recommends winehq-devel

Unmet dependency is a common issue while installing Wine in Ubuntu. In my Ubuntu 20.04, I never had the issue after manually installing the following packages:

sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386

Also, you may use aptitude (install it via sudo apt install aptitude) instead to print workarounds:

sudo aptitude install winehq-devel

Uninstall Wine 7.4:

To remove the wine packages, use command in terminal:

sudo apt remove --auto-remove winehq-devel

And remove the Wine repository using ‘Software & Updates‘ utility at Other Software tab.

That’s all. Enjoy!

The first development release after Wine stable 7.0 was out. Here’s what’s new and how to install in Ubuntu Linux.

Wine 7.1 comes with the latest Vulkan 3D graphics v1.3 support for running high-performance real-time 3D graphics applications. The new driver features dynamic rendering, additional dynamic state, improved synchronization API, and device profiles.

Other changes include:

  • A number of theming fixes.
  • WebSocket improvements.
  • Improved cursor clipping on macOS.
  • IDL compiler fixes for C++.

There are as well a total of 42 bug-fixes for Windows apps including Siemens SIMATIC STEP 7, Final fantasy 7, Arx Fatalis, Rising Kingdoms, Far Cry 5, Age of Empires 3, and more!

Wine 7.1 configuration

How to install Wine 7.1 in Ubuntu:

The official Wine repository provides the packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Ubuntu 21.10, Linux Mint 20, and their derivatives.

NOTE: Installing Wine Dev release will replace the stable package (if installed from same repository) in your system if any.

1. Enable 32 bit architecture

For modern 64-bit systems, you may first make sure the ability to install 32-bit app packages has been enabled.

To do so, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command:

sudo dpkg --add-architecture i386

2. Install the key:

To make your system trust the package from Wine repository, you have to download & install the key.

It’s can be done simply by running the command below in terminal:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Though the apt-key command is deprecated, it’s still working and the most efficient so far.

NOTE: The command may stuck with blinking cursor after downloading the key, if you run this command in another window or a few minutes after the last. It’s waiting for you to type password for ‘sudo’ authentication. Just type your password (no visual feedback) in mind and hit Enter.

3. Add Wine Repository:

Now in terminal window, run command to add the Wine repository:

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

NOTE: the command above is for ‘Ubuntu 20.04’ and ‘Linux Mint 20’ only!!! For other Ubuntu edition (check via lsb_release -a command), do change focal in the code with:

  • bionic for Ubuntu 18.04.
  • hirsute for Ubuntu 21.04.
  • impish for Ubuntu 21.10.

Say you’re running on Ubuntu 21.10, the command will be:

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

4. Install Wine 7.1:

Finally, refresh system package cache by running command:

sudo apt update

And, install Wine 7.1 via:

sudo apt install --install-recommends winehq-devel

Unmet dependency is a common issue while installing Wine in Ubuntu. In my Ubuntu 20.04, I never had the issue after manually installing the following packages:

sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386

Also, you may use aptitude (install it via sudo apt install aptitude) instead to print workarounds:

sudo aptitude install winehq-devel

Uninstall Wine 7.1:

To remove the wine packages, use command in terminal:

sudo apt remove --auto-remove winehq-devel

And remove the Wine repository using ‘Software & Updates‘ utility at Other Software tab.

That’s all. Enjoy!

After a year of development, Wine, the software for running Windows apps on Linux finally released new stable 7.0 version with over 9,100 individual changes.

What’s New in Wine 7.0:

In Wine 7.0, most modules have been converted to PE format (Portable Executable, the Windows binary format) instead of ELF. This helps various copy protection schemes that check that the on-disk and in-memory contents of system modules are identical.

This release also implemented 64-bit Windows-on-Windows (WoW64) architecture, enables ability to run a 32-bit Windows application inside a 64-bit Unix host process. Once all modules converted to PE format, it will be possible to run 32-bit applications without installing 32-bit Unix libraries.

All the builtin applications and common controls now support theming, as well as High DPI rendering. A “Light” theme is included, with the color variants “Blue” and “Classic Blue”.

The 7.0 release also introduced the new kernel side Win32u graphics library. The graphics drivers (e.g., winex11.drv and winemac.drv) will be migrated to this library in next releases.

Other changes in Wine 7.0 include:

  • Some initial support for Direct2D effects.
  • Multiple displays support for Direct3D apps.
  • More graphics cards recognized via Direct3D database:
    • AMD Radeon RX 5500M
    • AMD Radeon RX 6800/6800 XT/6900 XT
    • AMD Van Gogh
    • Intel UHD Graphics 630
    • NVIDIA GT 1030
  • Vastly improved HID stack and joystick support.
  • Update Mono to v7.0.0 with many improvements.
  • The ‘faudio’ now bundled in the source, which means Ubuntu 18.04 no longer needs adding separate PPA for the dependency (NOT tested as I don’t have 18.04 at hand).
  • See announcement for more details.

How to Install Wine 7.0 in Ubuntu & Linux Mint:

The official Wine repository provides the packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Ubuntu 21.10, Linux Mint 20, and their derivatives.

1. Enable 32 bit architecture

For modern 64-bit systems, you may first make sure the ability to install 32-bit app packages has been enabled.

To do so, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command:

sudo dpkg --add-architecture i386

2. Install the key:

To make your system trust the package from Wine repository, you have to download & install the key.

It’s can be done simply by running the command below in terminal:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Though the apt-key command is deprecated, it’s still working and the most efficient so far.

NOTE: The command may stuck with blinking cursor after downloading the key, if you run this command in another window or a few minutes after the last. It’s waiting for you to type password for ‘sudo’ authentication. Just type your password (no visual feedback) in mind and hit Enter.

3. Add Wine Repository:

Now in terminal window, run command to add the Wine repository:

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

NOTE: the command above is for ‘Ubuntu 20.04’ and ‘Linux Mint 20’ only!!! For other Ubuntu edition (check via lsb_release -a command), do change focal in the code with:

  • bionic for Ubuntu 18.04.
  • hirsute for Ubuntu 21.04.
  • impish for Ubuntu 21.10.

Say you’re running on Ubuntu 21.10, the command will be:

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

4. Install Wine 7.0:

Finally, refresh system package cache by running command:

sudo apt update

And, install Wine 7.0 via:

sudo apt install --install-recommends winehq-stable

Unmet dependency is a common issue while installing Wine in Ubuntu. In my Ubuntu 20.04, I never had the issue after manually installing the following packages:

sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386

Also, you may use aptitude (install it via sudo apt install aptitude) instead to print workarounds:

sudo aptitude install winehq-stable

Uninstall Wine 7.0:

To remove the wine packages, use command in terminal:

sudo apt remove --auto-remove winehq-stable

And remove the Wine repository using ‘Software & Updates‘ utility at Other Software tab.

That’s all. Enjoy!