web-dev-qa-db-ja.com

Ubuntuでwinetricksの最新バージョンを入手するにはどうすればよいですか?

Wineをインストールしましたが、現在のバージョンには非常に満足していますが、winetricksにより、さまざまなエラーメッセージが何度か表示されます。

Ubuntuでwinetricksを更新して最新バージョンを取得するにはどうすればよいですか?

19
andrew.46

在庫のUbuntuインストールに付属するwinetricksのバージョンは、かなり古い場合が多く、 より新しいPPA から入手できるバージョンでも少し遅れることがあります。 winetricksを手動で更新するのは素晴らしいアイデアであり、非常に安全な方法です。メインWineインストールのindependent、これはいくつかの簡単な方法で実行できます手順:

1。最新バージョンを確認し、古いバージョンを削除します:

最初に、この便利なワンライナーでアップストリームから利用可能な最新バージョンを確認します。

curl --silent --show-error \
https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks --stderr - \
| grep ^WINETRICKS_VERSION | cut -d '=' -f 2

次に、これがインストールされている独自のバージョンに勝っている場合(yourバージョンを確認するには、コマンドラインから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
20190615-next - sha256sum: 47304e177f259d6f9c05af01ab42c06531fd8a9716e2751d2fadcd664130feea
andrew@ilium~$ 

3。いくつかの追加を追加し、新しい構文を確認します:

これらのほとんどshouldはすでにインストールされていますが、winetricksを実行するために必要な「ヘルパー」アプリケーションをいくつか用意することもお勧めしますワインのコピー:

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

そして、すべてが元のままになります。

参照:

23
andrew.46