IbChristian
Member
I'm trying to purge Wine. it doesn't work for the Windows program I want to run. However I cannot seem to get rid of it. There is no uninstall option, and I have tried the methods listed here:
I even tried using TimeShift, but it's still there. Short of completely reinstalling Mint, is there another way to get rid of Wine?
There are 4 major steps.
1. Create a backup of the OS and your HOME. That would typically be timeshift and back-in-time on Mint. Better to have them and not need them, right?
2. sudo apt remove winehq-stable # remove the wine package
3. rm -rf ~/.wine # this will clean up your PERSONAL WINE stuff and installed programs, data, users and base Windows stuff if you used any winetricks to get programs working.
4. Remove the PPA for WineHQ from your APT setup. sudo rm https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources This isn't really required. It is just a few lines in 1-2 files under /etc/apt/sources.list.d/ # you can see the filename in your post above. I wouldn't bother with the keyrings, but you can if you like.
5. sudo apt update and sudo apt upgrade just to get updated and upgraded after removing a PPA. Shouldn't really do anything.
6. sudo apt autoremove # this will remove any other packages that the WINE package caused to be installed. It is optional, but a good idea to run every few weeks or at least once a month to prevent too much cruft.
The first four above are important. The last 2 are optional.
I even tried using TimeShift, but it's still there. Short of completely reinstalling Mint, is there another way to get rid of Wine?

