Linux下安装Wine 运行、卸载 windows程序

时间:2021-04-24 10:25:08

资料

  首页  https://www.winehq.org/

  安装  https://www.winehq.org/download/

  教程  https://www.winehq.org/documentation

1.安装Wine

  本文以Ubuntu为例,其它请到官网参考详细文档

  https://www.winehq.org/download/

  https://wiki.winehq.org/Ubuntu

2.1 Installing WineHQ packages

  If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

  If your system is 64 bit, enable 32 bit architecture (if you haven't already):

  $sudo dpkg --add-architecture i386 

  Add the repository:

  $sudo add-apt-repository ppa:wine/wine-builds

  Update packages:

  $sudo apt-get update

  Then install one of the following packages:(注意:Staging版一般不稳定)

Stable branch
sudo apt-get install --install-recommends winehq-stable
Development branch
sudo apt-get install --install-recommends winehq-devel
Staging branch
sudo apt-get install --install-recommends winehq-staging

  If apt-get complains about missing dependencies, install them, then repeat the last two steps (update and install).


  If you have previously used the distro packages, you will notice some differences in the WineHQ ones:

  • Files are installed to /opt/wine-devel.
  • Menu items are not created for Wine's builtin programs (winecfg, etc.), and if you are upgrading from a distro package that had added them, they will be removed. You can recreate them yourself using your menu editor.
  • Binfmt_misc registration is not added. Consult your distro's documentation for update-binfmts if you wish to do this manually.
  • WineHQ does not at present package wine-gecko or wine-mono. When creating a new wine prefix, you will be asked if you want to download those components. For best compatibility, it is recommended to click Yes here. If the download doesn't work for you, please follow the instructions on the Gecko and Mono wiki pages to install them manually.

2.2 安装目录

  成功后会在 /opt 目录下生成wine-staging目录

  Linux下安装Wine 运行、卸载 windows程序

  ~/.wine/drive_c 是windows目录

2.用wine运行exe文件

  • 终端下 wine xxx.exe
    $wine Si3576Setup.exe 
  • 图形界面

   右键点xxx.exe 选Open With ->  Wine Windows Program Loader

3.卸载安装的程序

3.1 用应用提供的卸载程序

  在相应的目录下找到卸载程序,如uninstall.exe 。然后右键 选Open With ->  Wine Windows Program Loader

3.2 wine uninstaller 命令

  输入命令:

$wine uninstaller 

  找到相应程序卸载,也可以用它安装应用。

Linux下安装Wine 运行、卸载 windows程序