我已经安装了,Wine
并且对当前版本感到非常满意,但是winetricks
由于各种错误消息而让我失望了几次。
如何更新winetricks
以在Ubuntu上获取最新版本?
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
20200412-next - sha256sum: 8b462a927bdb488441dc18855aba1ca2c2ec311343d352dc7b9ad3e673ba371f
andrew@ilium~$
3.添加一些附加功能并检查较新的语法:
确保您有一些需要运行的“辅助”应用程序也是一个好主意winetricks
,尽管其中大多数应已随您的Wine副本一起安装:
sudo apt-get install cabextract p7zip unrar unzip wget zenity
然后检查正确的用法,该用法可能与您的旧版本有所不同:
andrew@ilium~$ 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
-f, --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
-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
arch=32|64 create wineprefix with 32 or 64 bit, this option must be
given before prefix=foobar and will not work in case of
the default wineprefix.
prefix=foobar select WINEPREFIX=/home/andrew/.local/share/wineprefixes/foobar
annihilate Delete ALL DATA AND APPLICATIONS INSIDE THIS WINEPREFIX
andrew@ilium~$
4.安全地逆转这些步骤:
如果出于某种原因希望返回到较早的存储库版本,则可以运行以下命令:
sudo rm /usr/local/bin/winetricks
sudo apt-get install winetricks
一切都会保持原样。
笔记:
sudo winetricks --self-update
,如果没有满意的结果推出这一回来:sudo winetricks --update-rollback
。本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句