Cleaning up a WINE install.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Llewen
Level 1
Level 1
Posts: 9
Joined: Sun Apr 20, 2008 6:29 am

Cleaning up a WINE install.

Post by Llewen »

I was installing a game, and I made the mistake of agreeing to install
DirectX. I'm guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Cleaning up a WINE install.

Post by vitamin »

Llewen wrote:I was installing a game, and I made the mistake of agreeing to install
DirectX. I'm guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

Owen Stairs
Yes, all Wine files are kept in ~/.wine directory ($HOME/.wine). The only exceptions are desktop and menu entries. So to completely cleanup Wine you just need to remove the above directory with

Code: Select all

rm -rf ~/.wine
Wine will recreate it if it does not exists.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Cleaning up a WINE install.

Post by austin987 »

On Mon, Apr 21, 2008 at 8:53 AM, vitamin <[email protected]> wrote:
Llewen wrote:
I was installing a game, and I made the mistake of agreeing to install
DirectX. I'm guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

Owen Stairs
Yes, all Wine files are kept in ~/.wine directory ($HOME/.wine). The only
exceptions are desktop and menu entries. So to completely cleanup Wine you
just need to remove the above directory with
Code:
rm -rf ~/.wine


Wine will recreate it if it does not exists.





Careful, however, as this will remove all installed software and settings
(in wine, not native linux apps). You can try:
$ wine uninstaller
But it doesn't work too well currently, since other things are more
important to fix.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-us ... chment.htm
Marcel W. Wysocki

Cleaning up a WINE install.

Post by Marcel W. Wysocki »

On Mon, 21 Apr 2008 09:40:24 -0300
Owen Stairs <[email protected]> wrote:
I was installing a game, and I made the mistake of agreeing to install
DirectX. I'm guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

Owen Stairs
You can try to remove .wine/drive_c/windows and .wine/drive_c/program files
and then run wineprefixcreate
perhaps that will help
--
Marcel W. Wysocki <[email protected]>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-us ... chment.pgp
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Cleaning up a WINE install.

Post by vitamin »

Marcel W. Wysocki wrote:On Mon, 21 Apr 2008 09:40:24 -0300
Owen Stairs <[email protected]> wrote:
I was installing a game, and I made the mistake of agreeing to install
DirectX. I'm guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

Owen Stairs
You can try to remove .wine/drive_c/windows and .wine/drive_c/program files
and then run wineprefixcreate
perhaps that will help
--
Marcel W. Wysocki <[email protected]>
In case you didn't know that is what 'rm -rf ~/.wine' does, plus few more helpful things. All in one command! Removing files without cleaning registry is WRONG and will harm even windows. It for sure _WILL_ break Wine or rather programs that see stuff in registry yet can't find it on the disk.
Llewen
Level 1
Level 1
Posts: 9
Joined: Sun Apr 20, 2008 6:29 am

Cleaning up a WINE install.

Post by Llewen »

An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-us ... chment.htm
Marcel W. Wysocki

Cleaning up a WINE install.

Post by Marcel W. Wysocki »

On Mon, 21 Apr 2008 12:07:30 -0500
"vitamin" <[email protected]> wrote:
Marcel W. Wysocki wrote:
On Mon, 21 Apr 2008 09:40:24 -0300
Owen Stairs <[email protected]> wrote:

I was installing a game, and I made the mistake of agreeing to install
DirectX. I'm guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

Owen Stairs
You can try to remove .wine/drive_c/windows and .wine/drive_c/program files
and then run wineprefixcreate
perhaps that will help
--
Marcel W. Wysocki <[email protected]>
In case you didn't know that is what 'rm -rf ~/.wine' does, plus few more helpful things. All in one command! Removing files without cleaning registry is WRONG and will harm even windows. It for sure _WILL_ break Wine or rather programs that see stuff in registry yet can't find it on the disk.
well, he didnt really want to remove all of his software installed
anyways..
for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine



--
Marcel W. Wysocki <[email protected]>
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Cleaning up a WINE install.

Post by vitamin »

Marcel W. Wysocki wrote:for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine
I'd like you to show how well that "cleaner" removes Wine specific stuff? Or the invalid windows configuration?
Most of such "cleaners" will corrupt registry beyond repair or won't do anything useful at all.
Marcel W. Wysocki

Cleaning up a WINE install.

Post by Marcel W. Wysocki »

On Mon, 21 Apr 2008 15:46:51 -0500
"vitamin" <[email protected]> wrote:
Marcel W. Wysocki wrote:
for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine
I'd like you to show how well that "cleaner" removes Wine specific stuff? Or the invalid windows configuration?
Most of such "cleaners" will corrupt registry beyond repair or won't do anything useful at all.
it works quite well here
it cleans registry entries for:
missing shared dlls
unused file extensions
activex and class issues
applications
fonts
application paths
help files
installers
obsolete software
run at startip
start menu ordering
mui chache


the only stuff it removed but shouldnt is the font stuff or sth but thats recreated once i run wine again (and might as well be disabled in the program)
so far it did not break any functionality here and did a great job keeping my registry clean after removing software when uninstaller failed


--
Marcel W. Wysocki <[email protected]>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-us ... chment.pgp
Marcel W. Wysocki

Cleaning up a WINE install.

Post by Marcel W. Wysocki »

On Mon, 21 Apr 2008 15:46:51 -0500
"vitamin" <[email protected]> wrote:
Marcel W. Wysocki wrote:
for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine
I'd like you to show how well that "cleaner" removes Wine specific stuff? Or the invalid windows configuration?
Most of such "cleaners" will corrupt registry beyond repair or won't do anything useful at all.
i forgot to mention it has an english website as well
http://www.ccleaner.com/


--
Marcel W. Wysocki <[email protected]>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-us ... chment.pgp
User avatar
dimesio
Moderator
Moderator
Posts: 13278
Joined: Tue Mar 25, 2008 10:30 pm

Re: Cleaning up a WINE install.

Post by dimesio »

vitamin wrote:
Marcel W. Wysocki wrote:for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine
I'd like you to show how well that "cleaner" removes Wine specific stuff? Or the invalid windows configuration?
Most of such "cleaners" will corrupt registry beyond repair or won't do anything useful at all.
I haven't tried it in wine yet, but I have to say that CCleaner is the only program of its sort that I trust in Windows. (You're right, most are useless or dangerous.) CCleaner shows the user a list of things it thinks should be deleted, along with the reason why it thinks they should be deleted. The user has the option to accept or reject any of the recommendations, so it should be safe for users who are paying attention to what they are doing. It's rated platinum in the AppDB.
Locked