How do I get the latest version of winetricks on Ubuntu?

andrew.46

I have installed Wine and I am quite happy with my current version but winetricks has let me down a few times with various error messages.

How do I update winetricks to get the very latest version on Ubuntu?

andrew.46

The version of winetricks that comes with the stock Ubuntu installation is often quite old, even the version available from a more modern PPA can lag a bit. It is a great idea and a very safe one to update winetricks manually, independent of your main Wine installation, this can be done in a few simple steps:

1. Check for the latest version, remove the old version:

First check to see what is the latest version available from upstream with this handy one-liner:

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

Then if this trumps your own installed version (to see your version run winetricks --version from a command line) remove your currently installed version:

sudo apt-get remove winetricks

2. Install the latest version:

Then download and install the very latest version:

wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks 
sudo mv -v winetricks /usr/local/bin

As demonstrated on my own system the latest version can then be tested:

andrew@ilium~$ winetricks --version
20200412-next - sha256sum: 8b462a927bdb488441dc18855aba1ca2c2ec311343d352dc7b9ad3e673ba371f
andrew@ilium~$

3. Add some extras & check for newer syntax:

It may also be a good idea to ensure that you have a few required 'helper' applications for winetricks to run, although most of these should have already been installed with your copy of Wine:

sudo apt-get install cabextract p7zip unrar unzip wget zenity

Then check the correct usage, which could have changed from your older version:

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. Safely reverse these steps:

If for some reason you wish to return to your older repository version you can simply run the following:

sudo rm /usr/local/bin/winetricks
sudo apt-get install winetricks

And all will be as it was.

Notes:

  • WineHQ Wiki: winetricks All the best winetricks info from the WineHQ Wiki.
  • Semi-Automation: It is now possible to partially automate the update process by running sudo winetricks --self-update and if not happy with the results roll this back with: sudo winetricks --update-rollback.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I get the latest version of winetricks on Ubuntu?

From Dev

How do I install the latest version of packages in Ubuntu?

From Dev

How do I install the latest version of Java on Ubuntu 12.04 LTS?

From Dev

How do I upgrade Vagrant to the latest version in Ubuntu?

From Dev

How do I get the latest (beta and development) version of Chromium?

From Dev

How do I get the latest (beta and development) version of Chromium?

From Dev

How do I get the latest beta version of Juju?

From Dev

How do I get the latest Java JRE version?

From Dev

How do I get the latest GIMP version available?

From Dev

How get latest version of Baloo on Ubuntu?

From Java

How do I update zsh to the latest version?

From Dev

How do I install the latest version of Matlab?

From Dev

How do I install the latest version of rgl?

From Dev

How do I install the latest version of Matlab?

From Dev

How do I upgrade to the latest version of Shotwell?

From Dev

How do I update to the latest version of SASS?

From Dev

How do I download always the latest version of the programs when I use apt-get install [program]?

From Dev

How do I install the latest version of VirtualBox on Ubuntu 14.04 (Trusty Tahr) LTS?

From Dev

How do I update wps-office to the latest version in Ubuntu 18.04

From Dev

How do I get `tightvnc` to report the version number on Ubuntu?

From Dev

How do I use the latest GCC on Ubuntu?

From Dev

How do I use the latest GCC on Ubuntu?

From Dev

How do I list all currently installed "winetricks"?

From Dev

How do I tell winetricks to work with a different prefix?

From Dev

How do I upgrade PHP version to the latest stable released version?

From Dev

How do I get the latest Firebase and Firepad version from Firebase cdn?

From Dev

How do I get Portage to always select to install and upgrade to the latest available version of selected software?

From Dev

How do I get the latest version of AUDACITY to convert from WAV to MP3?

From Dev

How can I update gcc to the latest version in Ubuntu 10.04?

Related Related

  1. 1

    How do I get the latest version of winetricks on Ubuntu?

  2. 2

    How do I install the latest version of packages in Ubuntu?

  3. 3

    How do I install the latest version of Java on Ubuntu 12.04 LTS?

  4. 4

    How do I upgrade Vagrant to the latest version in Ubuntu?

  5. 5

    How do I get the latest (beta and development) version of Chromium?

  6. 6

    How do I get the latest (beta and development) version of Chromium?

  7. 7

    How do I get the latest beta version of Juju?

  8. 8

    How do I get the latest Java JRE version?

  9. 9

    How do I get the latest GIMP version available?

  10. 10

    How get latest version of Baloo on Ubuntu?

  11. 11

    How do I update zsh to the latest version?

  12. 12

    How do I install the latest version of Matlab?

  13. 13

    How do I install the latest version of rgl?

  14. 14

    How do I install the latest version of Matlab?

  15. 15

    How do I upgrade to the latest version of Shotwell?

  16. 16

    How do I update to the latest version of SASS?

  17. 17

    How do I download always the latest version of the programs when I use apt-get install [program]?

  18. 18

    How do I install the latest version of VirtualBox on Ubuntu 14.04 (Trusty Tahr) LTS?

  19. 19

    How do I update wps-office to the latest version in Ubuntu 18.04

  20. 20

    How do I get `tightvnc` to report the version number on Ubuntu?

  21. 21

    How do I use the latest GCC on Ubuntu?

  22. 22

    How do I use the latest GCC on Ubuntu?

  23. 23

    How do I list all currently installed "winetricks"?

  24. 24

    How do I tell winetricks to work with a different prefix?

  25. 25

    How do I upgrade PHP version to the latest stable released version?

  26. 26

    How do I get the latest Firebase and Firepad version from Firebase cdn?

  27. 27

    How do I get Portage to always select to install and upgrade to the latest available version of selected software?

  28. 28

    How do I get the latest version of AUDACITY to convert from WAV to MP3?

  29. 29

    How can I update gcc to the latest version in Ubuntu 10.04?

HotTag

Archive