Do I have to delete wine in order to upgrade it?

Questions about Wine on Linux
Locked
unlikely
Level 1
Level 1
Posts: 6
Joined: Wed Jan 10, 2018 1:58 pm

Do I have to delete wine in order to upgrade it?

Post by unlikely »

I currently have Wine 1.6.1 installed (Ubuntu Mate 16.04).

The instructions for upgrading Wine in https://wiki.winehq.org/Ubuntu say
"If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts."

Do I have to delete ~/.wine and all its contents? That would be seriously inconvenient as I have several Windows programs already installed.

If not, what do I do?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Do I have to delete wine in order to upgrade it?

Post by dimesio »

Uninstalling Wine and deleting the wineprefix are not the same thing. You do not have to delete ~/.wine, but you do have to uninstall 1.6.1 before installing a WineHQ package.
unlikely
Level 1
Level 1
Posts: 6
Joined: Wed Jan 10, 2018 1:58 pm

Re: Do I have to delete wine in order to upgrade it?

Post by unlikely »

dimesio wrote:Uninstalling Wine and deleting the wineprefix are not the same thing. You do not have to delete ~/.wine, but you do have to uninstall 1.6.1 before installing a WineHQ package.
OK, so deleting the wineprefix is the same as deleting the directory where wine is kept.

So I should use the "Uninstall Wine Software" as shown in the menu in the enclosed image:
"Uninstall Wine Software" menu option
"Uninstall Wine Software" menu option
I did delete ~/.wine on an old computer to see how it worked, and installed Wine 2.0.4. The new wine did not have any of the options like "Configure Wine" etc. I managed to re-install Sketchup by using winetricks.

Wine prefix changed from

Code: Select all

env WINEPREFIX="/home/bob/.wine" wine C:\\Program\ Files\\Google\\Google\ SketchUp\ 8\\SketchUp.exe
to

Code: Select all

env WINEPREFIX="/home/bob/.local/share/wineprefixes/sketchup" wine C:\\Program\ Files\\Google\\Google\ SketchUp\ 8\\SketchUp.exe 
So if I had used "Uninstall Wine Software", the software would have remained under "/home/bob/.wine"?

Thanks.
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Do I have to delete wine in order to upgrade it?

Post by dimesio »

unlikely wrote: OK, so deleting the wineprefix is the same as deleting the directory where wine is kept.
No; deleting the wineprefix is deleting the directory where Wine stores its configuration files, fake C: drive, and where your Windows apps get installed to. Wine is not normally installed in the wineprefix. Distro packages usually install it to /usr/bin, and the WineHQ packages install it to /opt/wine-devel or /opt/wine-staging.
So I should use the "Uninstall Wine Software" as shown in the menu in the enclosed image:
No, that is just for uninstalling your Windows apps, and only from the default wineprefix. It will not uninstall Wine.
I did delete ~/.wine on an old computer to see how it worked, and installed Wine 2.0.4.
So you did the opposite of what I told you to do.
The new wine did not have any of the options like "Configure Wine" etc.
As stated on https://wiki.winehq.org/Ubuntu:
Menu items are not created for Wine's builtin programs (winecfg, etc.), and if you are upgrading from a distro package that had added them, they will be removed. You can recreate them yourself using your menu editor.
I managed to re-install Sketchup by using winetricks.
As you discovered, winetricks installs apps to their own wineprefixes.
So if I had used "Uninstall Wine Software", the software would have remained under "/home/bob/.wine"?
No. If you had used Uninstall Wine Software you would have uninstalled the apps installed in ~/.wine without deleting ~/.wine. That would not have uninstalled Wine.

For more info:
https://wiki.winehq.org/FAQ#Uninstalling
https://wiki.winehq.org/FAQ#Wineprefixes
unlikely
Level 1
Level 1
Posts: 6
Joined: Wed Jan 10, 2018 1:58 pm

Re: Do I have to delete wine in order to upgrade it?

Post by unlikely »

dimesio wrote: So you did the opposite of what I told you to do.
Ah yes, but that was before I started asking questions here.
dimesio wrote: https://wiki.winehq.org/FAQ#Uninstallin ... installing Wine itself will not revert your Wine settings or uninstall your Windows apps, which are permanently stored in your user's home directory. Do not uninstall Wine if you only wish to remove all of your settings and apps. For instructions on removing your Wine settings and apps, see #How do I wipe the virtual Windows installation?

If you installed Wine with your distribution's package manager, use it again to uninstall Wine.
[/quote]
That looks promising. I will try it later.
Thanks again.
Locked