Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I uninstalled Wine 1.7 by apt-get remove wine1.7. But I found the programs I installed in .wine can still run. How can I uninstall them?

share|improve this question

1 Answer 1

up vote -1 down vote accepted

Open a terminal and type the following commands

sudo apt-get remove wine --purge

Next, we 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/????_*.xpm
rm -f $HOME/.local/share/icons/*wine*

Now restart the system using:

sudo reboot
share|improve this answer
1  
After I typed"sudo apt-get remove wine --purge"in a terminal,"...is not installed,so not removed" –  msy Jan 19 at 10:54
    
I don't think it's sufficient to purge the wine package itself, it's just a metapackage. As for the rm commands, that is a solution...to a different problem from the one here. Here, the issue isn't that Wine config or Windows files are present. It's that the core Wine executable and supporting files still exist and Wine actually runs! Finally note that rm with -r/-R on a path that starts with $HOME or ~, if entered with a 1-character typo, deletes the user's home folder! So a warning (or different way of doing it) is in order. –  Eliah Kagan Jan 19 at 11:14
    
Thank you very much. –  msy Jan 20 at 2:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.