How to remove wine completely
In my case Wine did not get effectively uninstalled using the command:
sudo apt-get --purge remove wine
So I did the following (make sure to copy the exact commands):
cd $HOME
rm -r .wine
rm .config/menus/applications-merged/wine*
rm -r .local/share/applications/wine
rm .local/share/desktop-directories/wine*
rm .local/share/icons/????_*.xpm
These commands delete files stored in hard disk that may lock uninstallation of wine. Quite possibly you will get some warnings about rm: remove write-protected regular file
here. These can be enforced collectively by using the f
option, i.e. rm -f
and rm -rf
instead of the above... but be the heck careful that you've actually typed the right paths!
After deleting the files run command:
sudo apt-get remove --purge wine
Do the following to correct any installation error.
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
Run these to get rid of menu entries instead of (or in addition to) using "Edit Menus".
rm $HOME/.config/menus/applications-merged/wine*
rm -r $HOME/.local/share/applications/wine
rm $HOME/.local/share/desktop-directories/wine*