How to install and completely remove Wine?

If you are following Ubuntu, you must be Wine familiar with Wine. Wine is an application that allows you to run Windows-based programs in Ubuntu. You install Wine by executing the following command in the Terminal (Applications -> Accessories -> Terminal).
sudo apt-get install wine
Now, you need to install the Windows-only application that you wish to use. Go to Appliactions -> Wine -> Configure Wine, and install the application. A simpler approach will be to just click on the Windows installer of the application. It will be installed inside Wine and a can be accessed under Applications -> Wine. To uninstall, use the Uninstall Wine Software option or do it from Configure Wine option.
Completely removing Wine: In case you want to completely remove Wine, the ususal uninstall command would leave you wondering what went wrong. It will uninstall Wine but leave the folders under the Applications menu. 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
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
PS: This is the sixth in a series on switching to Ubuntu from Windows, for non-geeks. At the end of the Ubuntu series, you will be a proud owner of a fantastic Linux system.
Ubuntu series:
Part1: Easy guide to getting started with Ubuntu
Part2: Dual-boot Ubuntu and Windows with common storage drives
Part3: Make Ubuntu mount partitions and drives automatically at startup
Part4: Activating restricted music formats, Java and Flash on Ubuntu
Part5: Installing some basic applications on your Ubuntu system
Part6: How to install and completely remove Wine?
Part7: Easily tweak Ubuntu with Ubuntu Tweak
Part8: Tasque manages to-do list locally or integrates with Remember The Milk
Part9: AllTray: Dock every application in tray
Part10: Install a Web server on Ubuntu home computer

11 Responses to "How to install and completely remove Wine?"
I would also uninstall the program for Windows library file that has the name winetricks hope can help me.
I found your blog in google for my problem (removing completely Wine)
Rodrigo (from Brazil)
I've used the command
rm -rf $HOME/.wine
put unfortunately it deleted my pictures folder!! Do not understand why.
Is there a way to recover my pictures folder?
Thanks
Thanks a lot... if you are a beginner using wine and you have some problems trying to remove software, this is the best way to solve them.
It deleted my many other folders too...it had alot of important data in them :(
how to recover them ???
-Simon
Please help how can I get wine under application menu to use it.
it's very nice post
ubai (indonesia)
that is probably the best way
Post a Comment