Linux下安裝Wine 運行、卸載 windows程序


資料

  首頁  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目錄

  

  ~/.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 

  找到相應程序卸載,也可以用它安裝應用。

 

   


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM