Linux is a very flexible operating system which provides different options for other operating system applications users. Wine is a tool used to run Windows operating system applications like Office, Game, Desktop, Design etc in a Linux distribution like Ubuntu, Debian, Mint, Kali, Fedora, CentOS etc.
Linux是一个非常灵活的操作系统,它为其他操作系统应用程序用户提供了不同的选择。 Wine是一种工具,用于在Linux发行版(如Ubuntu,Debian,Mint,Kali,Fedora,CentOS等)中运行Windows操作系统应用程序,如Office,Game,Desktop,Design等。
什么是酒 (What Is Wine)
Wine is known as an emulator but it describes itself as Wine Is Not an Emulator. Wine is designed to run Windows applications on POSIX compatible operating system Linux, MacOS and BSD. It is mainly called a compatibility layer which will match application system calls with the underlying operating system calls. Wine converts Windows API calls into POSIX calls and prevents disadvantages of other emulations methods.
Wine被称为模拟器,但将自身描述为Wine不是模拟器。 Wine旨在在POSIX兼容操作系统Linux,MacOS和BSD上运行Windows应用程序。 它主要被称为兼容性层,它将应用程序系统调用与基础操作系统调用进行匹配。 Wine将Windows API调用转换为POSIX调用,并避免了其他仿真方法的缺点。
安装Wine Emulator (Install Wine Emulator)
Wine can be installed in different ways like distro repositories or downloading the package from wine site.
Wine可以通过不同的方式进行安装,例如发行版存储库或从wine网站下载软件包。
为Ubuntu,Mint,Kali安装 (Install For Ubuntu, Mint, Kali)
We can install wine for deb based distributions like Ubuntu, Mint and Kali with the following apt command.
我们可以使用以下apt命令为基于Ubuntu,Mint和Kali的基于deb的发行版安装wine。
$ sudo apt install wine
![Install For Ubuntu, Mint, Kali](https://img-blog.csdnimg.cn/img_convert/31ac2c9d59ef0abdb1bcde65686401cb.png)
从酒库安装Ubuntu,Debian,Mint和Kali(Install For Ubuntu, Debian, Mint and Kali From Wine Repositories)
If we want to install the latest version which is provided by the Wine we need to add Wine repositories to the current distribution.
如果我们要安装Wine提供的最新版本,则需要将Wine存储库添加到当前发行版中。
If our system is 64 bit we need to enable the 32-bit library by adding i386 architecture to the dpkg.
如果我们的系统是64位,则需要通过在dpkg中添加i386架构来启用32位库。
$ sudo dpkg --add-architecture i386
Then we will add Wine repository key for security reasons
然后出于安全原因,我们将添加Wine仓库密钥
$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key
and as the last thing, we will add the repository for the given Ubuntu or related distribution version.
最后,我们将为给定的Ubuntu或相关发行版添加存储库。
For this version: | Use this command: |
---|---|
Ubuntu 18.10 | sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main’ |
Ubuntu 18.04Linux Mint 19.x | sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main’ |
Ubuntu 16.04Linux Mint 18.x | sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main’ |
Ubuntu 14.04Linux Mint 17.x | sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main’ |
对于此版本: | 使用此命令: |
---|---|
Ubuntu 18.10 | sudo apt-add-repository'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main' |
Ubuntu 18.04 Linux Mint 19.x | sudo apt-add-repository'deb https://dl.winehq.org/wine-builds/ubuntu/bionic main' |
Ubuntu 16.04 Linux Mint 18.x | sudo apt-add-repository'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' |
Ubuntu 14.04Linux Mint 17.x | sudo apt-add-repository'deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main' |