[Wine] Winetricks Location

Martin Gregorie martin at gregorie.org
Sun Jul 10 17:25:26 CDT 2011


On Sun, 2011-07-10 at 16:40 -0500, neji49 wrote:
> I've started experimenting with winetricks of the late, but I've run into an issue. Where does winetricks install all of it's files, I can't find them in the location I specified or anywhere else....
> 
Possibly a more general answer than you're expecting, but knowing this
is generally useful: use 'locate' or 'find'

locate
====== 
This is fastest, but won't find anything until 'updatedb' has been run
because it searches a database of file names. It is run by a daily
overnight cron job or running 'sudo updatedb' can force it. 'locate
mytarget' will list all absolute file names where  'mytarget' appears
anywhere in the name, so running

	locate mytarget | less 

is often a good idea.

find
====
Takes longer to run, doesn't use a database and is more flexable. The
equivalent command to the 'locate' example would be:

	find / -name mytarget

where the first argument is the root of the file structure you want to
search, in this case '/'. So, if you know the file is in /home you could
use:

	find /home -name 'myfile.*'

to find all files matching 'myfile.*' in the /home directories. Note
that you must single quote wildcarded files or you may not get the
results you wanted. Final example:

	find /home/myuser -name '*.txt' -exec grep -l 'cameron' {} \;

will list the full path names of all files with a .txt extension that
contain the word 'cameron' within the /home/myuser directory structure,
but it will be relatively slow since it will run grep on every file
whose name matches the -name pattern.


Martin





More information about the wine-users mailing list