Answers:
的版本winetricks
附带的股票Ubuntu的安装往往是很老了,甚至可用的版本,从一个更现代的PPA可以有点滞后。独立于您的主要安装,winetricks
手动进行更新是一个好主意,也是一个非常安全的主意,这可以通过几个简单的步骤完成:Wine
1.检查最新版本,删除旧版本:
首先检查一下这个方便的单缸上游产品的最新版本:
curl --silent --show-error \
https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks --stderr - \
| grep ^WINETRICKS_VERSION | cut -d '=' -f 2
然后,如果这胜过您自己的安装版本(以查看您的版本从命令行运行winetricks --version
),请删除当前安装的版本:
sudo apt-get remove winetricks
2.安装最新版本:
然后下载并安装最新版本:
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
sudo mv -v winetricks /usr/local/bin
如在我自己的系统上演示的,可以测试最新版本:
andrew@ilium~$ winetricks --version
20190912-next - sha256sum: 4b994d981a7b6abe1f0edb6a57d8c15b1f060cf08de8819f9147e31ababf35a6
andrew@ilium~$
3.添加一些附加功能并检查较新的语法:
确保您有一些需要运行的“助手”应用程序也是一个好主意winetricks
,尽管其中大多数应已随您的Wine副本一起安装:
sudo apt-get install cabextract p7zip unrar unzip wget zenity
然后检查正确的用法(可能与您的旧版本有所不同):
andrew@illium~$ winetricks -h
Usage: /usr/local/bin/winetricks [options] [command|verb|path-to-verb] ...
Executes given verbs. Each verb installs an application or changes a setting.
Options:
--country=CC Set country code to CC and don't detect your IP address
--force Don't check whether packages were already installed
--gui Show gui diagnostics even when driven by commandline
--isolate Install each app or game in its own bottle (WINEPREFIX)
--self-update Update this application to the last version
--update-rollback Rollback the last self update
-k, --keep_isos Cache isos (allows later installation without disc)
--no-clean Don't delete temp directories (useful during debugging)
-q, --unattended Don't ask any questions, just install automatically
-r, --ddrescue Retry hard when caching scratched discs
--showbroken Even show verbs that are currently broken in wine
-t --torify Run downloads under torify, if available
--verify Run (automated) GUI tests for verbs, if available
-v, --verbose Echo all commands as they are executed
-h, --help Display this message and exit
-V, --version Display version and exit
Commands:
list list categories
list-all list all categories and their verbs
apps list list verbs in category 'applications'
benchmarks list list verbs in category 'benchmarks'
dlls list list verbs in category 'dlls'
games list list verbs in category 'games'
settings list list verbs in category 'settings'
list-cached list cached-and-ready-to-install verbs
list-download list verbs which download automatically
list-manual-download list verbs which download with some help from the user
list-installed list already-installed verbs
prefix=foobar select WINEPREFIX=/home/andrew/.local/share/wineprefixes/foobar
annihilate Delete ALL DATA AND APPLICATIONS INSIDE THIS WINEPREFIX
andrew@illium~$
4.安全地逆转这些步骤:
如果出于某种原因希望返回到较早的存储库版本,则可以简单地运行以下命令:
sudo rm /usr/local/bin/winetricks
sudo apt-get install winetricks
一切都会保持原样。
参考文献:
/usr/local/bin
,甚至~/bin
可以/usr/bin
使用。
winetricks
确实更新了3年(从2017 年8月改为2014年8月)!→此建议仍然有效。
Disco和Eoan中提供的winetricks版本可以自我更新[1]。
如果碰巧使用的是19.04或更高版本,请运行:
sudo apt install winetricks
sudo winetricks --self-update
如果您使用的是旧版Ubuntu,则可以在以下位置获取.deb软件包:https :
//packages.ubuntu.com/eoan/all/winetricks/download
sudo mv -v winetricks /usr/bin
代替吗?