1、CentOS 7 安装 64 位 Wine
1)安装 EPEL 软件源
Wine 3 最新稳定版包含在 EPEL 软件源中,安装 Wine 3 首先需要安装 EPEL 软件源:
复制
sudo yum install epel-release
2)CentOS 7 安装 64 位 Wine 3.0
安装 EPEL 软件源后,直接使用如下命令安装 64 位 Wine 3 最新稳定版:
复制
sudo yum -y install wine
2、CentOS 7 安装 32 位 Wine
1)32 位 Wine 依赖于 EPEL 软件源中 64 位 Wine,所以首先按如上安装 EPEL 软件源。
2)安装 CentOS/RHEL 7 32 位 Wine 软件源:
复制
sudo yum -y install https://harbottle.gitlab.io/wine32/7/i386/wine32-release.rpm
3)CentOS 7 安装 32 位 Wine,它同时安装 64 位 Wine
复制
sudo yum -y install wine.i686
3、CentOS 7 为 Wine 3 安装中文字体
在 CentOS 7 中安装完 Wine 3 后,运行程序显示中文会模糊,那是因为 Wine 中没有安装 Windows 下常用的中文字体,安装完成后字体文件夹的位置为 /usr/share/wine/fonts/,你需要从网上下载常用中文字体,如:宋体,黑体,仿宋 等,把这些字体放在 font 文件夹下,然后复制到 Wine 的字体文件夹中。
复制
sudo cp font/* /usr/share/wine/fonts/
4、Wine 3 安装启动 Windows 程序
Wine 3 安装完成后,你可以右击 Windows exe 文件,然后选择“用‘Wine Windows Program Loader’打开”,来安装程序。
程序安装完成后,在桌面上有 Windows 程序的快捷方式,双击程序的快捷启动程序。
5、Wine 3 卸载 Windows 程序
CentOS 7 安装 Wine 3 后,如需卸载应用程序,进入菜单“应用程序–>Wine”,点击菜单项“Wine Software Uninstaller”卸载 Windows 应用程序。