Skip to content

Install Guide Wine Uninstall

gamedirection edited this page Aug 22, 2026 · 1 revision

Install Guide: Uninstall Wine

This guide removes Wine, Affinity, and their associated files from your Linux system. It applies to the manual setup described in Install Guide: Wine.

Warning

  • Back up important data. Make sure you've backed up any important Windows applications or data stored in your Wine prefixes before proceeding.
  • Custom installations. If you installed Wine from source, or with an alternative method, you may need additional cleanup steps.
  • System variations. Some directory paths vary depending on your Linux distribution and Wine installation method.

Uninstallation Steps

  1. Remove the Wine packages.

    sudo apt purge --autoremove wine* winetricks -y
  2. Remove the WineHQ repository sources.

    sudo rm -f /etc/apt/sources.list.d/winehq.list
  3. Remove the WineHQ GPG keys.

    sudo rm -f /etc/apt/keyrings/winehq.asc
  4. Update your package lists.

    sudo apt update
  5. Remove user Wine data and configuration.

    rm -rf ~/.wine
    rm -rf ~/.local/share/applications/wine
    rm -rf ~/.cache/wine
    rm -rf ~/.config/wine
    rm -rf ~/.affinity

    The .affinity directory is specific to Affinity installations that used a WINEPREFIX named .affinity, as in Install Guide: Wine. It may not be present on all setups.

  6. Remove Winetricks, if you installed it manually.

    sudo rm -f /usr/local/bin/winetricks
  7. Run a final system cleanup.

    sudo apt autoremove -y
    sudo apt clean

Verification

After completing these steps, verify Wine is completely removed:

which wine
wine --version

Both commands should return no results, or a "command not found" error.

Troubleshooting

If you still see traces of Wine after uninstalling:

  • Check for remaining Wine-related packages: dpkg -l | grep wine
  • Search for leftover Wine files: locate wine | grep -v /proc
  • Review your package manager logs for installation anomalies.

Known Issues

None currently tracked for this uninstall procedure. See General Known Issues for issues affecting Affinity on Linux more broadly.

Clone this wiki locally