Translation(s): English - Français - Русский

(!) ?/Discussion


WINE logo obtained from official website winehq.org - Logo by Joel Holdsworth, original image designed by Jon Parshall - GNU LGPL

Wine — (à l'origine un acronyme pour « Wine Is Not an Emulator ») est une couche de compatibilité capable de faire fonctionner des applications Windows sur différents systèmes d'exploitation conformes à la norme POSIX, tels que Linux, Mac OSX et BSD. Au lieu de simuler le fonctionnement interne de Windows comme une machine virtuelle ou un émulateur, Wine traduit à la volée les appels à l'API Windows en appels POSIX. Wine élimine ainsi les pénalités en termes de performance et d'occupation mémoire des autres méthodes, et permet de mieux intégrer les applications Windows à votre environnement de bureau.

Versions disponibles

Depuis Debian Jessie, vous pouvez choisir entre deux types de paquets pour Wine : wine et wine-development.

Wine poursuit deux développements sur son site officiel winehq.org : wine en version stable (c'est à dire, la version 1.6.2), et wine-development la version en développement (c'est à dire, la version 1.7.29).

Malgré son nom, wine-development est aussi destinée à l'usage des utilisateurs ordinaires. Ne mélangez pas celui-ci avec les paquets *-dev qui contiennent les fichiers d'en-têtes et les bibliothèques de développement.

Vous pouvez installer indifféremment l'une ou l'autre de ces versions ou bien avoir les deux installées en même temps.

Installation on Debian Jessie and newer

Step 1: Enable multiarch


On 64-bit systems you should enable a 32-bit architecture for multiarch. This is needed for running 32-bit Windows applications (many modern apps are still 32-bit), but also for large parts of the Windows subsystem itself. If in doubt, you do need it!

You can identify your architecture with the following command:

dpkg --print-architecture

E.g. for amd64 (which most users have) you need i386. Enable it with the following command:

sudo dpkg --add-architecture i386 && apt update

Step 2: Installation

Standard installation


Install wine with the following command:

sudo apt install wine

et / ou wine-development :

sudo apt install wine-development

Installation à partir des backports de Jessie

Pour Debian Jessie, l'actuelle version de wine-development est disponible en tant que paquet rétroporté (backports). Pour activer jessie-backports, ajoutez la ligne suivante dans votre fichier sources.list (ou ajoutez un nouveau fichier avec l'extension « .list » vers /etc/apt/sources.list.d/) :

deb http://httpredir.debian.org/debian jessie-backports main

et exécutez la commande

sudo apt update

Les paquets issus des backports ne sont pas automatiquement installés, mais une fois qu'ils le sont (manuellement), vous recevrez les mises à jours automatiques. Les exemples de commandes suivants vous assurent que tous les paquets requis sont issus de jessie-backports au lieu de jessie.

Au lieu de suivre les exemples de commandes suivants, vous pourriez préférer utiliser simplement « apt install -t jessie-backports wine » (ou « apt install -t jessie-backports wine-development »). Mais alors vous aurez de nombreux paquets non souhaités d'installé issus jessie-backports !

Optional Wine dependencies


wine and wine-development consist of a suite of packages. Some are optional and might not be installed automatically:

Users on a 64-bit system should make sure that both wine32 and wine64 (or wine32-development and wine64-development) are installed (see Step 1: Enable multiarch).

libwine and libwine-development recommend many other libraries needed for optional functionalities. These should be installed automatically, but if you don't need them you may uninstall them. On amd64 remember that most times the i386 packages are the relevant ones.

Installation on Debian Wheezy and older


In Debian Wheezy Wine is divided into several different packages. This way one may install only those functionalities of Wine which are necessary for one.

Le paquet standard s'obtient simplement en installant wine.

sudo apt-get install wine

Le paquet minimal s'obtient en installant wine-bin.

sudo apt-get install wine-bin

Après l'installation de wine-bin des modules additionnels peuvent être acquis via l'installation des paquets correspondants :

Usage

Command names (choosing between wine and wine-development)


wine and wine-development use the Debian alternatives system to provide /usr/bin/wine and other commands. If both packages are installed it defaults to use the commands provided by wine.

You may change this by running:

sudo update-alternatives --config wine

You may force a version at any time (as long as the wineserver isn't running yet), by using the suffixed command names, e.g.:

wine-stable foo.exe
wine-development foo.exe
winecfg-stable
winecfg-development
winegcc-stable ...
winegcc-development ...

The alternatives system is available since Debian Stretch (and Jessie Backports). To use wine-development in Jessie you have to use the suffixed command names.

Configuring Wine


Installing and removing Windows programs


In order to install a program, launch the Windows installation file (.exe/.msi) with the following command:

wine setup.exe

In order to remove a program, launch the wine uninstaller with the following command:

wine uninstaller

Le désinstallateur de Wine n'efface pas les entrées du menu et les icônes du bureau ; vous devez donc les enlever manuellement.

System integration


If you want to start Windows applications directly (with the command ./foo.exe) you have to enable binfmt support. Have a look at the README.debian for details.

Additional programs for Wine


Alternatives


Liens