WINE(1)
๐ท WINE โ like, the actual man page, bestie
okay so this is from the Windows On Unix manual (that's the manual name, iykyk) and it's literally the whole vibe of running Windows stuff on Unix. sit down, grab a strawberry ๐, we're getting into it.
โจ NAME โจ
wine โ run Windows programs on Unix ๐
periodt.
๐ธ SYNOPSIS ๐ธ
wine program [arguments]
wine --help
wine --version
quick heads up bestie: if you wanna know how arguments get passed to Windows programs, the PROGRAM/ARGUMENTS section below is your girl ๐ซถ
๐ฆ DESCRIPTION ๐ฆ
wine loads and runs the program you give it. and like, what even is that program? it can be a DOS, Windows 3.x, Win32 or Win64 executable (the Win64 one only on 64-bit systems, obviously โจ).
not me forgetting to mention โ if you're trying to debug wine, use winedbg instead. different tool, different vibe.
and if you're running CUI executables (that's Windows console programs, for the uninitiated ๐), use wineconsole instead of wine, because it shows the output in its own separate window. if you don't use wineconsole for CUI programs, you get like... very limited console support, and your program might just not function properly. no cap. ๐ญ
also! when you invoke it with --help or --version as the only argument, wine just prints a tiny help message or its version respectively and dips. that's it, that's the whole interaction ๐
๐ PROGRAM/ARGUMENTS ๐
so the program name can be written in DOS format:
C:\\WINDOWS\\SOL.EXE
or in Unix format:
/msdos/windows/sol.exe
either slaps ๐
and you can pass arguments to the program you're executing by just adding them to the end of the command line that invokes wine, like:
wine notepad C:\\TEMP\\README.TXT
โ ๏ธ but careful babe โ you need to \ escape special characters (and spaces!) when you invoke Wine via a shell. the original example, exactly:
wine C:\\Program\ Files\\MyPrg\\test.exe
oh and the program can also be one of the Windows executables that ships with Wine ๐ท in which case you don't have to specify the full path, it's not mandatory โ like wine explorer or wine notepad. iconic.
๐ ENVIRONMENT ๐
wine makes the environment variables of the shell it was started from accessible to the Windows/DOS processes it starts. so basically โ use whatever syntax your shell needs to set environment variables, and you're set ๐ซถ
WINEPREFIXโ if set, its contents get taken as the name of the directory where Wine stores its data (the default is$HOME/.wine). this directory is also used to identify the socket used to talk to thewineserver. all wine processes using the samewineserver(i.e. same user) share certain things like registry, shared memory, and config file. so by settingWINEPREFIXto different values for different wine processes, you can run a whole bunch of truly independent wine processes. main character energy, honestly ๐WINESERVERโ specifies the path and name of thewineserverbinary. if it's not set, Wine looks for a file namedwineserverin the path and in a few other likely locations ๐WINEDEBUGโ turns debugging messages on or off. the syntax is of the form:
[class][+|-]channel[,[class2][+|-]channel2]
class is optional and can be one of: err, warn, fixme, or trace. if class isn't specified, all debugging messages for the specified channel get turned on. each channel prints messages about a particular component of Wine. the following character can be either + or -, to switch the specified channel on or off respectively. if there's no class part before it, a leading + can be omitted. and note โ spaces are not allowed anywhere in the string. ๐ซ
Examples, and these are exact:
WINEDEBUG=warn+all
turns on all warning messages (recommended for debugging) ๐ฅ
WINEDEBUG=warn+dll,+heap
turns on DLL warning messages and all heap messages.
WINEDEBUG=fixme-all,warn+cursor,+relay
turns off all FIXME messages, turns on cursor warning messages, and turns on all relay messages (API calls).
WINEDEBUG=relay
turns on all relay messages. for more control on including or excluding functions and dlls from the relay trace, look into the HKEY_CURRENT_USER\Software\Wine\Debug registry key ๐
for more info on debugging messages, see the Running Wine chapter of the Wine User Guide.
WINEDLLPATHโ specifies the path(s) in which to search for builtin dlls and Winelib applications. it's a list of directories separated by":". in addition to any directory specified inWINEDLLPATH, Wine also looks in the installation directory ๐งWINEDLLOVERRIDESโ defines the override type and load order of dlls used in the loading process for any dll. there are currently two types of libraries that can be loaded into a process address space: native windows dlls (native) and Wine internal dlls (builtin). the type may be abbreviated with the first letter of the type (norb). the library may also be disabled (''). each sequence of orders must be separated by commas.
each dll may have its own specific load order. the load order determines which version of the dll gets attempted to be loaded into the address space. if the first fails, then the next is tried and so on. multiple libraries with the same load order can be separated with commas. it's also possible to specify different loadorders for different libraries by separating the entries by ";".
the load order for a 16-bit dll is always defined by the load order of the 32-bit dll that contains it (you can identify that by looking at the symbolic link of the 16-bit .dll.so file). for instance, if ole32.dll is configured as builtin, storage.dll will be loaded as builtin too, since the 32-bit ole32.dll contains the 16-bit storage.dll. the way that works is so cool honestly ๐
Examples:
WINEDLLOVERRIDES="comdlg32,shell32=n,b"
try to load comdlg32 and shell32 as native windows dll first, and try the builtin version if the native load fails.
WINEDLLOVERRIDES="comdlg32,shell32=n;c:\\foo\\bar\\baz=b"
try to load the libraries comdlg32 and shell32 as native windows dlls. furthermore, if an application requests to load c:\foo\bar\baz.dll, load the builtin library baz.
WINEDLLOVERRIDES="comdlg32=b,n;shell32=b;comctl32=n;oleaut32="
try to load comdlg32 as builtin first and try the native version if the builtin load fails; load shell32 always as builtin and comctl32 always as native; oleaut32 will be disabled.
WINEPATHโ specifies additional path(s) to be prepended to the default WindowsPATHenvironment variable. it's a list of Windows-style directories separated by";". ๐ช
for a permanent alternative, edit (create if needed) the PATH value under the HKEY_CURRENT_USER\Environment registry key.
WINEARCHโ specifies the Windows architecture to support. it can be set towin32(support only 32-bit applications), towin64(support both 64-bit applications and 32-bit ones), or towow64(support 64-bit applications and 32-bit ones, using a 64-bit host process in all cases).
๐ the architecture supported by a given Wine prefix is set at prefix creation time and cannot be changed afterwards. when running with an existing prefix, Wine will refuse to start ifWINEARCHdoesn't match the prefix architecture. it is possible, however, to switch freely betweenwin64andwow64with an existing 64-bit prefix. so like, choose wisely bestie.
WINE_D3D_CONFIGโ specifies Direct3D configuration options. it can be used instead of modifying theHKEY_CURRENT_USER\Software\Wine\Direct3Dregistry key. the value is a comma- or semicolon-separated list of key-value pairs. for example:
WINE_D3D_CONFIG="renderer=vulkan;VideoPciVendorID=0xc0de"
if an individual setting is specified in both the environment variable and the registry, the former takes precedence. env var wins, slay ๐
DISPLAYโ specifies the X11 display to use.
OSS sound driver configuration variables (yes, a whole lil subcategory, adorable):
AUDIODEVโ set the device for audio input / output. default/dev/dsp.MIXERDEVโ set the device for mixer controls. default/dev/mixer.MIDIDEVโ set the MIDI (sequencer) device. default/dev/sequencer.
๐ FILES ๐
wineโ the Wine program loader.wineconsoleโ the Wine program loader for CUI (console) applications.wineserverโ the Wine server.winedbgโ the Wine debugger.$WINEPREFIX/dosdevicesโ directory containing the DOS device mappings. each file in that directory is a symlink to the Unix device file implementing a given device. for instance, ifCOM1is mapped to/dev/ttyS0you'd have a symlink of the form$WINEPREFIX/dosdevices/com1 -> /dev/ttyS0.
DOS drives are also specified with symlinks; for instance if drive D: corresponds to the CDROM mounted at /mnt/cdrom, you'd have a symlink $WINEPREFIX/dosdevices/d: -> /mnt/cdrom. the Unix device corresponding to a DOS drive can be specified the same way, except with '::' instead of ':'. so for the previous example, if the CDROM device is mounted from /dev/hdc, the corresponding symlink would be $WINEPREFIX/dosdevices/d:: -> /dev/hdc. see how that works? cute little double colon ๐
๐ AUTHORS ๐
Wine is available thanks to the work of many developers ๐ซถ for a listing of the authors, please see the file AUTHORS in the top-level directory of the source distribution.
๐ COPYRIGHT ๐
Wine can be distributed under the terms of the LGPL license. a copy of the license is in the file COPYING.LIB in the top-level directory of the source distribution.
๐ BUGS ๐
a status report on many applications is available from the Wine Application Database. please add entries to this list for applications you currently run, if necessary ๐
bugs can be reported on the Wine bug tracker.
โญ AVAILABILITY โญ
the most recent public version of wine is available through WineHQ, the Wine development headquarters ๐
๐ฅ SEE ALSO ๐ฅ
wineserver(1), winedbg(1), Wine documentation and support.
๐ธ okay that's the whole page bestie, you're officially educated ๐ธ
sign-off time: this glorious document is Wine 11.21, dated July 2013 โ yes, that's the version and the date at the bottom of the page, and honestly? we respect the archive energy ๐โจ
๐ฆ where this page comes from
- arch rolling: wine 11.21-1 ยท LGPL-2.1-or-later
- arch rolling: wine-staging 11.21-1 ยท LGPL-2.1-or-later
- nixpkgs unstable: wine 11.21
- nixpkgs unstable: wine-staging 11.21
- nixpkgs unstable: wine-wow64 11.21
- nixpkgs unstable: wine-wow64-staging 11.21
- nixpkgs unstable: wine64 11.21
- nixpkgs unstable: wine64-staging 11.21
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms