How to completely uninstall Wine in Linux Ubuntu? How to completely remove Wine in Linux Ubuntu? Learn to remove wine folder and all the applications in that folder.
Uninstalling Wine via synaptic will keeps showing it in the application menu. It will uninstall Wine but leave the folders under the Applications menu.
In case you want to completely remove Wine, the ususal uninstall command would leave you wondering what went wrong. If you want a complete uninstall, execute the following commands in Terminal in the following order.
sudo apt-get remove wine
rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm
After deleting the files run command:
sudo apt-get remove –purge wine
Again run the following commands to correct any installation error.
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
That’s all. After running the above set of commands, Wine is completely removed from your Ubuntu PC.
To Remove Wine Menu Entries Without Terminal
When you install wine, it creates a “wine” menu in your applications menu, and this menu is partly user specific. To remove the menu entries, open the menu editor and disable or remove the wine related entries. You can also remove the /home/username/.wine folder be either enabling hidden files in nautilus.
You can also open the menu editor from the Dash by press alt+f2 and type alacarte Click on the icon, and the menu editor will come up. Now remove the menu entries.