winetricks is a quick and dirty script to download and install various redistributable runtime libraries sometimes needed to run programs in Wine.
Note: Although using winetricks may be very useful for getting some programs working in Wine, doing so may limit your ability to get support though WineHQ. In particular, reporting bugs may not be possible. See Reporting bugs after you have used Winetricks below.
Note: Some of the packages listed below may not work well with older versions of Wine. As always we recommend you use the latest version of Wine.
Getting winetricks
The script is maintained by DanKegel at http://winetricks.org. The latest release is available at http://winetricks.org/winetricks . Right-click on that link and use 'save as' to save a fresh copy. Or you can get it from the commandline with the command:
wget http://winetricks.org/winetricks
The latest unreleased winetricks is at http://winetricks.org should Dan get behind in doing a release.
Also, some winetricks "packages" require a few external tools to be installed, namely: cabextract, unzip, p7zip, wget (or curl), and zenity (or kdialog). Linux users can usually get these via their distribution's package management system.
New Gui
winetricks 20110311 was a major release. Changes:
- the menu has been broken up into sections (it was getting too big)
- dependency checking is better
- verbs can now be in external files for testing
it includes a bunch of games and apps ported in from wisotool
- apps are installed in their own wineprefix by default, making them easier to uninstall reliably, and preventing workarounds for one app from breaking other apps
Ubuntu Users
If you have followed the instructions at http://www.winehq.org/download/deb to install the latest Wine, then you should already have winetricks installed as its own package.
Using winetricks
Once you've obtained winetricks you can run it simply by typing sh winetricks at the console. If ran without parameters a winetricks displays a GUI with a list of available packages. If you know the name of the package(s) you wish to install, you can append the name(s) to the winetricks command line and it will immediately start the installation process. For example,
sh winetricks corefonts vcrun6
will install both the corefonts and vcrun6 packages.
Options
Here is its help text as of 2011/03/29:
Usage: ./winetricks [options] [verb|path-to-verb] ... Executes given verbs. Each verb installs an application or changes a setting. Options: -k|--keep_isos: cache isos (allows later installation without disc) -q|--unattended: don't ask any questions, just install automatically -r|--ddrescue: alternate method of disc access (helps with scratched discs) -v|--verbose: echo all commands as they are executed -V|--version: display version and exit -h|--help: display this message and exit --isolate: install each app or game in its own bottle --no-isolate: install each app or game in its own bottle (default) --noclean: don't delete temp directories (useful during debugging) --force: don't check whether packages were already installed --gui: show gui diagnostics even when driven by commandline --showbroken: even show verbs that are currently broken in wine Miscellaneous verbs: apps: select type 'apps' games: select type 'games' list: list verbs from selected category. (To see all games, do 'games list'.) list-cached: list cached-and-ready-to-install applications list-download: list applications which can be downloaded automatically list-manual-download: list applications which can be downloaded with some help from the user list-installed: list already-installed applications prefix=foobar select WINEPREFIX=/home/USER/.local/share/wineprefixes/foobar
Tip: Winetricks knows about the WINEPREFIX environment variable. This is useful for using winetricks on other prefixes. For example,
env WINEPREFIX=~/.winetest winetricks mfc40
installs the mfc40 package for the ~/.winetest prefix.
Tip: Users with more than one version of Wine on their system (for example, an installed package and an uninstalled Wine built from git) can specify which version winetricks should use. For example,
env WINE=~/wine-git/wine winetricks mfc40
installs the mfc40 package using the Wine in the ~/wine-git directory.
Reporting bugs after you have used Winetricks
Please do not report bugs if you have used winetricks to install native (ie non Wine) files, as we cannot support Microsoft dlls.
Using winetricks to install gecko, mono, and fakeie6 options is acceptable for bug reports - just be sure to mention that's what you've done.
Additionally if you found it necessary to use winetricks for an application please mention it when submitting to the AppDB, mailing lists, and other Wine resources.
Reporting bugs *in* Winetricks
Winetricks has a bug tracking system at http://winetricks.org, please use it. If you don't want to get an account there to file a bug, posting on the wine user forum may also eventually get noticed.
How to remove things installed by Winetricks
It's easy to install an entire wineprefix, so by default, Winetricks installs each app into its own wineprefix, and offers an easy way to remove wineprefixes and the menu items they created.
Winetricks does not provide a way to uninstall individual apps or dlls inside a wineprefix. This is for several reasons, but mainly because the preferred way to uninstall anything in Wine is to simply install into a fresh wineprefix. (Yes, it would be nice to have uninstallers for everything, but I don't need it myself. Patches welcome.)
Installing winetricks
Some Linux distributions (Suse?) include winetricks in their Wine packages, so you don't have to download or install it. (You might still want to if their version is old.)
See also http://code.google.com/p/winetricks/wiki/Installing
Or, once you've downloaded your own copy of winetricks, you can install it like this:
chmod +x winetricks sudo mv winetricks /usr/local/bin
See Also
http://www.cabextract.org.uk/ -- cabextract is a tool for extracting MS cabinet files under Unix environments.
http://mike.kronenberg.org/index.php?s=trix (Darwine now comes bundled with trix, a gui that invokes winetricks)
Translations
Winetricks de Deutsch
Winetricks pl Polish
Winetricks ro Romanian
Winetricks es EspaƱol
Winetricks ru Russian
Winetricks ja Japanese
Winetricks cn Chinese