I want to remove all programs associated to Wine and Wine itself in one command, can it be done? The whole point of this question is that I don't want to find any files connected to wine.
5 Answers
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
This would uninstall wine and remove all menus and icons.

- 25,371
-
@alvar what are you talking about? – Lincity Apr 14 '11 at 10:03
WARNING! DOING THIS WILL DESTROY DATA
sudo apt-get remove wine
rm -rf ~/.wine
If you really want it to be one command, replace the newline between the two lines with &&
That will remove Wine (if you installed it from the repo) and it'll destroy the default installation area for applications.
Things it won't do:
- It won't remove Wine if you installed it without a package.
- It won't delete things that have been installed to non-standard places.
- It won't delete files that Wine applications have created outside of
~/.wine
- It won't clean up your menu.
- It won't clean up any file associations you've pointed at Wine apps.
- It won't call you tomorrow morning.
Clean up your Menus with Alacarte
Because the above won't remove old program links in your menus, you need to manually remove the Wine applications. Thankfully in recent versions of Wine, all programs are automatically clustered under a "Wine" submenu. We just need to hide or remove this:
- Right click the Menu button and click Edit Menus
- Find the Wine portion and either delete it or uncheck it.
-
I will add
sudo apt-get autoremove
to remove wine dependencies (and also other unnecessary packages). – enzotib Apr 14 '11 at 08:56 -
ok, that wasn't what I was looking for, if I want to remove it from the menu how do I remove it then? – Alvar Apr 14 '11 at 09:01
-
1Right click the Menu button → Edit Menus → Find the Wine portion and either delete it or uncheck it. – Oli Apr 14 '11 at 09:03
-
-
I removed wine and associates program using:
Run this in your terminal for removed all wine apps:
cd $HOME
rm -rf .wine
Run this command to delete from system menu::
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,png}
rm -f $HOME/.local/share/icons/*-x-wine-*.{xpm,png}

- 191
I typed sudo apt-get remove wine*
and it worked, it removed wine and all programs, but it also removed ubuntu-desktop. But now everything works thanks!

- 17,058
-
The right expression is not
wine*
but^wine
. (I'm leaving this comment because it seems that somebody run the command you have posted.) – Andrea Corbellini Aug 22 '13 at 16:12 -
-
Answer by @Alaukik works great but as mentioned by Oli in his answer if the wine
is installed without a package then following answer :
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
does not do the great job at complete removal of wine
. So to have an absolute removal do the following along with above scripts.
sudo apt-get purge wine* ; sudo dpkg --purge wine*
Cheers!!!

- 321
- 2
- 7