如何在Ubuntu上获得最新版本的winetricks?

我已经安装了Wine ,我对我当前的版本非常满意,但是winetricks让我失去了几次错误消息。

如何更新winetricks以获取Ubuntu上的最新版本?

随着Ubuntu库存安装附带的winetricks版本通常很老,即使是更现代的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@illium~$ winetricks --version 20180815-next - sha256sum: dabee915ac8555f6ff33605f56be3c66a0abb7210f47bc14d7dca2fa92af752e andrew@illium~$ 

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 

一切都会如此。

参考文献:

  • WineHQ Wiki:winetricks