August 11, 2026
Wine - WINEPREFFIX Usage
WINEPREFFIX enables wine compartimatalization, this basically means creating a dedicated directory for each specific Windows program that needs to be executed with Wine in linux.
These compartments are called "bottles". This practice prevents DLL corruption, since each program may need its own custom configuration.
Basically, each bottle allows the existence of one winecfg per program.
For this example, I'll be creating a bottle and installing an old-ass cracked fl-studio from 2011 that still works!
Start a bottle using winecfg
This will create a hidden directory at user's home.
It is recommended to use the prefix '.wine-'.
WINEPREFIX=~/.wine-fl-studio winecfg
Setting a 32bit architecture if the program at that bottle requires it
WINEPREFIX=~/.wine-fl-studio-32bit WINEARCH="win32" winecfg
[OPTIONAL] Move the program's installer inside the bottle
mkdir ~/.wine-fl-studio/installer
cp ~/./fl-studio-10/flstudio_10.0.exe .wine-fl-studio/installer
Installing a program in that bottle
WINEPREFIX=~/.wine-fl-studio wine ~/.wine-fl-studio/installer/flstudio_10.0.exe
[OPTIONAL] Verify the installation
The program-related folders should appear on the drive.
tree -L 1 $HOME'/.wine-fl-studio/drive_c/Program Files (x86)/'
Create an alias to the application in ~/.bash_aliases
alias fl-studio="WINEPREFIX=~/.wine-fl-studio/ wine $HOME'/.wine-fl-studio/drive_c/Program Files (x86)/Image-Line/FL Studio 10/FL.exe'"
Open a new terminal and the application can now be executed with the command fl-studio (or whatever alias you've chosen).
Bonus:
Creating a bottle for a portable program.
For this example I will use a WoW-Wotlk folder I downloaded.
Create the bottle, setting it to Windows 7
WINEPREFIX=~/.wine-wow-wotlk winecfg
Create a directory for World of Warcraft inside Program Files x86
mkdir $HOME'/.wine-wow-wotlk/drive_c/Program Files (x86)/World-of-Warcraft'
Move the World of Warcraft directory inside of it
mv Downloads/WoW-Wotlk-enUS/ $HOME'/.wine-wow-wotlk/drive_c/Program Files (x86)/World-of-Warcraft/'
Create an alias to the application in ~/.bash_aliases
alias wow-wotlk="WINEPREFIX=~/.wine-wow-wotlk/ wine $HOME'/.wine-wow-wotlk/drive_c/Program Files (x86)/World-of-Warcraft/WoW-Wotlk-enUS/Wow.exe'"
And that's it! A dedicated config bottle for World of Warcraft.