本文介绍在Fedora 30系统中安装Wine 4和winetricks的方法,也适用于Fedora 29/28版本。可参考在Debian/Arch Linux/Fedora中安装Wine 4的方法。
一、添加WineHQ存储库 首先添加WineHQ存储库,不同Fedora版本有不同的地址,如下: 针对Fedora 29: sudo dnf -y install dnf-plugins-core dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/29/winehq.repo 针对Fedora 30: dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/30/winehq.repo 针对Fedora 28: dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/28/winehq.repo
二、在Fedora 30/29/28中安装Wine 4的方法 建议使用稳定版本,即Stable版本。 Stable版本: sudo dnf -y install winehq-stable Development版本: sudo dnf install winehq-devel Staging版本: sudo dnf install winehq-staging 参考:dnf命令_Linux dnf命令使用详解:新一代的RPM软件包管理器。 运行以下命令查看安装的信息: $ rpm -qi winehq-stable Name: winehq-stable Epoch: 1 Version: 4.0 Release: 6.1 Architecture: x86_64 Install Date: Fri 10 May 2019 11:21:04 AM EAT Group: Emulators Size: 62425 License: LGPLv2+ Signature: RSA/SHA256, Wed 23 Jan 2019 12:53:28 PM EAT, Key ID 76f1a20ff987672f Source RPM: wine-stable-4.0-6.1.src.rpm Build Date: Wed 23 Jan 2019 04:24:02 AM EAT Build Host: localhost 注:运行wine --version命令可直接查看版本: $ wine --version wine-4.0(参考:Wine 4.0发布下载,附更新详情) 要配置wine,请运行: $ winecfg
三、安装winetricks Winetricks是一个帮助脚本,用于下载和安装在Wine中运行某些程序所需的各种可再发行的运行时库,这些可能包括使用封闭源库替换Wine的组件,运行如下命令: wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks chmod +x winetricks sudo mv winetricks /usr/local/bin/ 成果如下图:
相关主题 |