Deleting the hidden .wine folder in OSX... Help! [RESOLVED]

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
helpplease
Newbie
Newbie
Posts: 4
Joined: Sun Apr 26, 2009 2:49 am

Deleting the hidden .wine folder in OSX... Help! [RESOLVED]

Post by helpplease »

How do I delete the hidden .wine folder on OS X if rm -rf doesn't work, I can't cd to it, and Houdini can't view it?

I'm trying to uninstall wine from OS X and I need to delete the virtual C drive. If I "locate wine" in the terminal, it reveals that the virtual C drive is in /Users/foo/.wine. rm -rf and sudo rm -rf have no effect. I also can't cd to /Users/foo/.wine, it tells me "file or directory does not exist." In Houdini, it doesn't show a .wine folder under the user directory.

Any advice on how to remove the folder? There's a good deal of disk space locked up in windows programs I'd like to free up.

Thanks for your time.
Last edited by helpplease on Sun Apr 26, 2009 3:43 am, edited 4 times in total.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Deleting the hidden .wine folder in OSX... Help!

Post by austin987 »

On Sun, Apr 26, 2009 at 2:51 AM, helpplease <[email protected]> wrote:
How do I delete the hidden .wine folder on OS X if rm -rf doesn't work, I can't cd to it, and Houdini can't view it?

I'm trying to uninstall wine from OS X and I need to delete the virtual C drive. If I "locate wine" in the terminal, it reveals that the virtual C drive is in /username/.wine. rm -rf and sudo rm -rf have no effect. I can't cd to /username/.wine, it tells me "file or directory does not exist." In Houdini, it doesn't show a .wine folder under the user directory.

Any advice on how to remove the folder? There's a good deal of disk space locked up in windows programs I'd like to free up.

Thanks for your time.
Are you sure it's not in /Users/username/.wine?


--
-Austin
motorollin
Level 2
Level 2
Posts: 26
Joined: Thu Apr 23, 2009 7:23 am

Post by motorollin »

/username/.wine doesn't sound right. In OS X your home directory is located in /Users/username. Instead of using the full path, try this while logged on as the user whose wine directory you want to delete:

rm -rf ~/.wine

The ~ refers to the path to your own home directory, so is equivalent to /Users/foo (if the logged on user is called foo)
helpplease
Newbie
Newbie
Posts: 4
Joined: Sun Apr 26, 2009 2:49 am

Post by helpplease »

Sorry for not being clear: .wine is under /Users/username. I cannot delete the folder with sudo rm -rf /Users/username/.wine.

In fact, I can't even navigate to it... Cd indicates the folder does not exist, and Houdini can't see the hidden file. Under /Users/username, ls does not reveal the .wine folder.

However, locate wine does show the path /Users/username/.wine/drive_c/ etc etc.

Thanks for your reply though... any other suggestions?
motorollin
Level 2
Level 2
Posts: 26
Joined: Thu Apr 23, 2009 7:23 am

Post by motorollin »

I don't know why you need to use sudo. If the folder is in your own home directory, just do:

rm -rf ~/.wine
helpplease
Newbie
Newbie
Posts: 4
Joined: Sun Apr 26, 2009 2:49 am

Post by helpplease »

rm -rf does not work. The command executes with no errors, but "locate wine" afterwards still shows thousands of files under /User/foo/.wine/drive_c/.

If I navigate to /User/foo and ls -a, I can't see the .wine folder. .wine doesn't show up under /User/foo in finder with show hidden files enabled either.

So to recap, (sudo) rm -rf doesn't work for $HOME, ~/, or /User/foo (spelled out).

Thanks for all your help guys. =) The wine community is great.
motorollin
Level 2
Level 2
Posts: 26
Joined: Thu Apr 23, 2009 7:23 am

Post by motorollin »

IIRC locate doesn't actually search the disk, it searches its own database. Maybe the locate database is out of date and is showing files which aren't actually there.

To update the database, try this:

sudo /usr/libexec/locate.updatedb

then

locate wine

and see if the files still show up in your home directory.
helpplease
Newbie
Newbie
Posts: 4
Joined: Sun Apr 26, 2009 2:49 am

Post by helpplease »

Thank you... I'm pretty OCD, so I've been working on this for easily 2 hours now. It's good to know that the files are in fact gone.

Thank you!
motorollin
Level 2
Level 2
Posts: 26
Joined: Thu Apr 23, 2009 7:23 am

Post by motorollin »

I understand - I can't bear to think of directories left behind by a deleted application ;)

Did you try updating the locatedb? That would satisfy your OCD tendencies even more, since you would know that the database reflected what is actually in the filesystem. Hmm, I'd better go and do mine too :D
Martin Gregorie

Deleting the hidden .wine folder in OSX... Help!

Post by Martin Gregorie »

On Sun, 2009-04-26 at 03:17 -0500, helpplease wrote:
However, locate wine does show the path /Users/username/.wine/drive_c/ etc etc.
That's because 'locate' is scanning a database thats typically refreshed
at part of the overnight cron jobs.

Either look again next day to convince yourself that its gone or run
'updatedb' as root. BTW, the same restriction applies to the 'apropos'
manpage finder.

In summary:
- 'locate' doesn't see recent changes until cron has run 'updatedb'
- if you want to check on a change you've just made, use 'ls' or 'find'


Martin
Locked