Wine
Installation[1]Edit
Debian/UbuntuEdit
PreparationEdit
If your system is 64 bit, enable 32 bit architecture:
sudo dpkg --add-architecture i386
Make a note of your distribution name: Look for the line with either UBUNTU_CODENAME or VERSION_CODENAME. If both are present, use the name after UBUNTU_CODENAME.
cat /etc/os-release
Download and add the repository key:
sudo mkdir -pm755 /etc/apt/keyrings wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
Add one repository:
Version | Command |
---|---|
oracular
Ubuntu 24.10 |
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/oracular/winehq-oracular.sources
|
noble
Ubuntu 24.04 Linux Mint 22 |
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
|
JammyUbuntu 22.04
Linux Mint 21.x |
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
|
focalUbuntu 20.04
Linux Mint 20.x |
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
|
trixieDebian Testing | sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/trixie/winehq-trixie.sources
|
bookwormDebian 12 | sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
|
bullseye
Debian 11 |
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources
|
Update the package information:
sudo apt update
Install Wine Edit
sudo apt install --install-recommends winehq-stable
Configuring[2]Edit
Before the first run, configure it:
wine winecfg
When setting up the Wine prefix directory, Wine will prompt you to install Mono. You do not need to install Mono .NET to run .NET Core applications, so you can cancel the install of Wine Mono. Wine Gecko is also not needed. Once wineconfig is running, there should be a .wine directory in your home directory. Nothing needs to be changed in WineConfig so it can be closed.
Setup .NET Core on WineEdit
The easiest way to install .NET Core for testing is to copy the dotnet directory from your Windows install to the Linux computer. Copy the entire dotnet folder from the Program Files directory on Windows. The root filesystem is in /home/dave/.wine/drive_c/
Install / copy your application to LinuxEdit
Applications that can run from the build output directory can be copied from Windows to anywhere on your Linux machine. I usually copy the application into the program files directory for testing. Wine also supports setting registry keys or environment variables. If your required setup has more complex requirements, you may have more difficulty, but Wine supports a surprising number of Windows features.
RunningEdit
Change to the directory of the exe file and run:
wine {location name of your app}