Home / Linux / Ubuntu 18.04 / how to use wine on Ubuntu 18.04 | wine Ubuntu | how to use wine ( winehq ) stable

how to use wine on Ubuntu 18.04 | wine Ubuntu | how to use wine ( winehq ) stable

You can go the following link to get more details but I will post only here the simpliefied and shortest summed up version on how to use it. https://wiki.winehq.org/Ubuntu

Installing WineHQ packages

sudo dpkg --add-architecture i386

wget -nc https://dl.winehq.org/wine-builds/winehq.key

sudo apt-key add winehq.key

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

sudo apt install --install-recommends winehq-stable

Configuration Wine https://wiki.archlinux.org/index.php/Wine#WINEARCH

env WINEPREFIX=~/.customprefix wineboot -u

Wine will start an 64-bit environment by default. You can change this behavior using the WINEARCH environment variable. Rename your ~/.wine directory and create a new Wine environment by running $ WINEARCH=win32 winecfg. This will get you a 32-bit Wine environment. Not setting WINEARCH will get you a 64-bit one.You can combine this with WINEPREFIX to make a separate win32 and win64 environment with the following code.

WINEARCH=win32 WINEPREFIX=~/win32 winecfg
WINEPREFIX=~/win64 winecfg

You might be wonder what’s next, how to install windows programs ? Well with the following code you can choose to select which version of wine you want to use to run the programme. If the program is 64 bit use the 64 bit, if it’s 32 then use 32 bit.

This code will install 64 bit program on the win64 folder you created before

WINEARCH=win64 WINEPREFIX=~/win64 wine  "YOUR PROGRAM"

This code will install 32 bit program on the win32 folder you created before

WINEARCH=win32 WINEPREFIX=~/win32 wine  "YOUR PROGRAM"

You can also run uninstaller the same way in case you are facing difficulties uninstalling afterward because you might be using 32 bit uninstaller to uninstall 64 bit program, that doesn’t sound healthy!!
Use the one you need –

WINEARCH=win64 WINEPREFIX=~/win64 wine uninstaller
WINEARCH=win32 WINEPREFIX=~/win32 wine uninstaller

Hits: 98

Leave a Reply