winetricks download script PDF Print E-mail
Written by Nick Koch   
Wednesday, 02 April 2008 00:00

For those of you who use winetricks and update it on a regular basis probably want an easier method to download it and place it where you want it. I made a script which will delete the previous version located in /usr/bin/winetricks and download the new one and put it in /usr/bin

Open your favorite text editor and paste in the following lines below and then save the file in /usr/local/bin/getwinetricks and sudo chmod a+x /usr/local/bin/getwinetricks

#!/bin/bash
sudo rm /usr/bin/winetricks
cd ~/ && wget http://www.kegel.com/wine/winetricks
chmod +x winetricks
sudo mv winetricks /usr/bin
echo Winetricks successfully installed.
winetricks –version

To run just make a link to your desktop or call winetricks from the terminal

> getwinetricks



Enjoy!

As always, you can grab the latest winetricks from
http://kegel.com/wine/winetricks
or by using the getwinetricks download script
getwinetricks script
 

Del.icio.us     Digg This!     Furl     Google     Seed Newsvine     Reddit     Slashdot     Stumble It!     Technorati     Yahoo MyWeb

Comments
Add New Search RSS
Stephan Sokolow 2008-09-15 04:17:30

Here's my suggested variation on that script for the following reasons:
- It puts winetricks
in /usr/local where things not provided by the package manager are supposed to go.
- It
uses -V to get the version because the content management system for this site mangles the
double dashes which prefix the long version argument.
- Its use of sudo is cleaner and, as
a side effect, it will no longer act oddly if you type `sudo getwinetricks`.

Code:

#!/bin/bash

BINPATH="/usr/local/bin/winetric ks"

if [ "$UID" != 0 ]; then

 sudo "$0" "$@" && "${BINPATH}" -V
else

rm "${BINPATH}"

wget http://www.kegel.com/wine/winetricks "-O${BINPATH}"
chmod
+x "${BINPATH}"
echo Winetricks successfully installed.
fi

Stephan Sokolow 2008-09-15 04:19:31

Ugh. Here it is again without the code tags. Apparently the code formatting for this site is
broken.

#!/bin/bash

BINPATH="/usr/local/bin/ winetricks"

if [ "$UID" != 0 ];
then
sudo "$0" "$@" && "${BINPATH}" -V
else
rm
"${BINPATH}"
wget http://www.kegel.com/wine/winetricks "-O${BINPATH}"
chmod
+x "${BINPATH}"
echo Winetricks successfully installed.
fi
Stephan Sokolow 2008-09-15 04:22:08

Ugh. One more try. Here is is as a never-expiring paste on pastebin.ca

http://pastebin.ca/1203366
Write comment
Name:
Email:
 
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
Text:

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Latest Comments

Most Comments

Stats

Statistics

Members : 2
Content : 345
Content View Hits : 288568
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday1193
mod_vvisit_counterYesterday1715
mod_vvisit_counterThis week4543
mod_vvisit_counterThis month31533
mod_vvisit_counterAll216411