Linux Commands Examples

A great documentation place for Linux commands


manage virtual windows environments using wine

see also : wine


winetricks [options] [verb ... ]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!



To see list of available packages to install:

winetricks list-download

To install a package:

winetricks 7zip


Winetricks fails installing dotnet20 and msxml6

I ran into the same problem yesterday. I posted a fix on the ubuntu forums:

Maybe that works better than the file from filehippo.

Edit: Make sure that wine is in 32 bit mode as specified on the wine-hq page for .net 2.0


How to use winecfg headless?

Just like Windows does, everything in Wine is configured through the registry. Every single settings winecfg access can also be accessed through the registry using the regedit utility, which can also be used in command line to either import a big .reg file or set individual keys on the command line itself.

All the used keys are in the Useful Registry Keys wiki page.

The easiest option in your case would be to export the configuration in a .reg file (right click on the keys you need, export) and then import then with wine regedit MyConfig.reg in your auto-configure script. You can write the .reg manually as well if you want, it's just a .ini-style text file.

Edit: wanted to add that as a comment as it doesn't answer the question itself but suggest another way of doing it but I lack reputation here: I'd recommend to just create a full copy of your clean pre-installation prefix and just copy it back when you need to reset. You will avoid the whole script to reconfigure a clean prefix, and will also be much faster than reinstalling libraries through winetricks and running regedit as all its a disk only operation.


winetricks is an easy way to work around common problems in Wine.

It provides simple commands to tweak Wine settings, download and install missing Windows DLLs and fonts, or install various games or apps with appropriate workarounds for the current version of wine.

It can be used via gui or commandline. The commandline mode is intended both for interactive use and as a building block in fancier wine frontends and in automated regression testing.

winetricks with no arguments displays a GUI using either Zenity or Kdialog.



Don’t check whether packages were already installed


Show gui diagnostics even when driven by commandline

-k, --keep_isos

Cache isos (allows later installation without disc)


Don’t delete temp directories (useful during debugging)


Don’t install each app or game in its own bottle

-q, --unattended

Don’t ask any questions, just install automatically

-r, --ddrescue

Retry hard when caching scratched discs


Even show verbs that are currently broken in wine

-v, --verbose

Echo all commands as they are executed

-h, --help

Display this message and exit

-V, --version

Display version and exit


The most recent version of winetricks can be downloaded from

The latest snapshot of the code may be obtained via svn; see

For further information about winetricks see


winetricks is made available under the terms of the LGPL license. A copy of the license is in the file COPYING in the top-level directory of the source distribution.



list categories

apps list

list verbs in category ’applications’

benchmarks list

list verbs in category ’benchmarks’

dlls list

list verbs in category ’dlls’

games list

list verbs in category ’games’

settings list

list verbs in category ’settings’


list cached-and-ready-to-install verbs


list verbs which download automatically


list verbs which download with some help from the user


list already-installed verbs


select WINEPREFIX=$HOME/.local/share/wineprefixes/foobar

environment variables

Wine checks several environment variables on startup:

If set, this specifies the location of the default .wine directory ( usually $HOME/.wine ).


If set, this specifies which wine binary to use by default


If set, this is path to system’s user data cache (default: $HOME/.cache) W_CACHE path to Winetricks’ user data cache (default: $XDG_CACHE_HOME/winetricks}


Bugs may be reported at

see also



Dan Kegel, Austin English, and many others. For a complete list, please see the "Copyright" section in the file ’winetricks’.

How can this site be more helpful to YOU ?

give  feedback