How do I uninstall wine when I don't know how it was installed?

Solution 1:

The wine project has an excellent Wiki article specific to macOS. It includes how to remove wine from your macOS system, but basically there are a few ways to uninstall wine

MacPorts:

sudo port uninstall --follow-dependencies wine

Homebrew:

brew rm wine && brew rm $(join <(brew leaves) <(brew deps wine))

Source:

sudo make uninstall
rm -rf /src/wine              #Remove the source
rm -rf $HOME/.wine            #Remove pseudo C: and registry entries
rm -rf $HOME/.local           #Remove desktop menu entries and icons

You can attempt any of these methods without fear that if you didn't install using that method, there won't be adverse affects to your system.