How can I remove the wine folder and all the applications in that folder?
I've tried via synaptic but it keeps showing up in the application menu.
How can I remove the wine folder and all the applications in that folder?
I've tried via synaptic but it keeps showing up in the application menu.
In my case Wine did not get effectively uninstalled using the command:
sudo apt-get --purge remove wine wine64 libwine fonts-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
rm -rf
lines. Accidentally adding one could nuke your home folder without prompt.
– user1717828
Jun 23 '16 at 13:15
cd $HOME
and running all the commands with relative paths may avoid another accident.
– Ismael Miguel
Jun 24 '16 at 13:10
cd $HOME
; and then the rm
s with relative paths.
– Rmano
Jun 28 '16 at 19:22
$ apt list --installed | sed -E 's|(.*)/.*|\1|' | grep -i wine
get the list of packages and remove them one by one using sudo apt remove <PACKAGE-NAME>
and you are done.
– Jay
Aug 08 '19 at 19:29
Virtual packages like 'wine' can't be removed
you can try sudo apt-get remove winehq-stable --purge
. Depends on how wine was installed.
– edge-case
Aug 27 '21 at 21:43
command. Because there are
wine-extension*` files as well.
– Péter Szilvási
May 29 '23 at 12:33
First answer is the easy form to get this, but it's incomplete, the complete code is:
If you've installed wine from the official Ubuntu repositories:
sudo apt-get remove wine --purge
If you've installed wine from their official PPA:
sudo apt-get remove wine-1.3 --purge
Next, clean the context menu, menu entries, etc:
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/*wine*
It needs to reboot the system:
sudo reboot
rm -f $HOME/.local/share/icons/????_*.xpm
is a bad idea, it removes ALL icons which do not have to be wine ones.
– Lekensteyn
Dec 15 '11 at 18:26
?
matches a single character. If you want to match wine, just use rm -f $HOME/.local/share/icons/wine_*.xpm
. But the latter command already matches any filename with "wine" in it, so it's obsolete.
– Lekensteyn
Dec 15 '11 at 19:00
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*
I tried more ways from here and others but didn't work so i did the following and it worked if you installed it from Winehq site you just need to do
1- Press alt+Ctrl+t to open the terminal
2- Type in it sudo apt-get remove winehq-devel
Note: if it said that not found try other winehq type to remove what you have install as sudo apt-get remove winehq-stable
Or sudo apt-get remove winehq-staging
3- Type y mean yes to remove it, in the removing in will download some files and a new windows will appear just click tab from your keyboard to click on ok and then yes
4- when it finish do sudo apt-get update
then sudo apt-get upgrade
5- it will ask you to do sudo apt autoremove
you are done now
You can reinstall it or do what you want to do now
If you installed it by Ubuntu software you can remove it by using it too
Single command :
sudo apt-get remove --auto-remove winehq-stable
just change "winehq-stable" according to your condition ( either winehq-devel or winehq-staging) if above doesn't work.
note: this is for them who used winehq
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, right click on your menu and click edit menus.
Now 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, or by opening a terminal and typing rm -rf ~/.wine
.
You need to 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.
-f
(force) option in the rm
command. rm -r ~/.wine
is much safer than an answer of "yes" on all warnings, because you can't be sure that "yes" will always be the best thing to do.
– Firefeather
Nov 30 '10 at 16:33
-f
) as much as possible. 8-P
– Firefeather
Dec 21 '11 at 20:12
If apt-get --purge autoremove wine
does not do it, maybe your package goes otherwise, like wine1.6-dev
. Try that that one.
Using some menu editors can cause trouble, as it hides rather than deletes the menu items - and they stay hidden if you reinstall the apps!
See http://wiki.winehq.org/FAQ#uninstall_app for tips on how to uninstall wine and/or all wine apps.
Go to software manager. You will still find wine related packages installed. Remove them. This really works to remove wine from the menu.
I've had a similar problem but after doing
apt-get autoremove wine
it worked