6

I recently messed up with my wine, and now it can't open any application. How do I restore wine to original state and remove everything installed application, just like when it was first installed.

Nur
  • 4,081
  • Rename your ~/.wine folder to .wine.backup and just run winecfg to create a new .wine default prefix. See also this question. –  Apr 27 '13 at 15:20
  • I've done a quick answer with some additional detail that might be helpful. –  Apr 29 '13 at 23:40

1 Answers1

9

You should be able to rename ~/.wine to ~/.wine.backup and then run the wine configuration program from the menu or from the command-line (winecfg) and then a new ~/.wine will be regenerated and you will still have the old wine folder and so all your files will remain. You can then decide how to proceed.

Additionally, sometimes the old WINEPREFIX can be fixed by resetting the dll overrides, with winetricks alldlls=default, as those overrides can often cause problems, as I discuss in this answer.

Problems with wine can often occur, and that is why I always recommend installing new games or applications in their own WINEPREFIX, as I discuss here: