LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2011, 06:51 AM   #1
anon02
Member
 
Registered: Aug 2011
Posts: 223

Rep: Reputation: Disabled
Removing all trace of wine?


Recently I decided to install wine to check the .exes mingw32 made, yet it used up lots of disk space. I removed it, and my disk usage had not gone down. I decided to remove all trace of wine from my computer, so went to / and tried:

sudo find | grep -i wine

And saw that there were loads of them. Is there a way to put this into rm?
I tried:

sudo find | grep -i wine | rm

But it errored with:


rm: missing operand
Try `rm --help' for more information.

Any ideas?
 
Old 09-24-2011, 07:04 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
4.2. How do I uninstall *all* Windows applications?
To remove all programs installed under Wine, remove the wineprefix (usually the ~/.wine directory) by carefully pasting the following commands into a terminal:
Code:
cd $HOME
rm -rf .wine
But that doesn't remove them from the system menu; to clean out the menus, carefully paste the following commands into a terminal:
Code:
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}
4.3. How do I uninstall Wine?
If you installed Wine with your distribution's package manager, use the package manager again to uninstall Wine. (If you installed Wine from source, then use make uninstall in the source directory to remove it.)
This won't uninstall your Windows apps, though; see above for that.

http://wiki.winehq.org/FAQ#head-2e99...b640b2d5839586
 
Old 09-24-2011, 07:08 AM   #3
anon02
Member
 
Registered: Aug 2011
Posts: 223

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
4.2. How do I uninstall *all* Windows applications?
To remove all programs installed under Wine, remove the wineprefix (usually the ~/.wine directory) by carefully pasting the following commands into a terminal:
Code:
cd $HOME
rm -rf .wine
But that doesn't remove them from the system menu; to clean out the menus, carefully paste the following commands into a terminal:
Code:
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}
4.3. How do I uninstall Wine?
If you installed Wine with your distribution's package manager, use the package manager again to uninstall Wine. (If you installed Wine from source, then use make uninstall in the source directory to remove it.)
This won't uninstall your Windows apps, though; see above for that.

http://wiki.winehq.org/FAQ#head-2e99...b640b2d5839586
Yes, I did all this, but unfortunately there are still many files in random locations in /.

Thanks for the help, anyway.
 
Old 09-24-2011, 07:30 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
What does

Code:
sudo dpkg --get-selections |grep wine
return?
 
Old 09-24-2011, 07:43 AM   #5
anon02
Member
 
Registered: Aug 2011
Posts: 223

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
What does

Code:
sudo dpkg --get-selections |grep wine
return?
It returns:

Code:
wine1.2						deinstall
 
Old 09-25-2011, 09:58 PM   #6
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 36
Try this:

Code:
sudo updatedb
locate -i -r wine | sed ‘s/ /\\ /g’ | sudo xargs rm -Rv
 
Old 09-26-2011, 11:51 AM   #7
anon02
Member
 
Registered: Aug 2011
Posts: 223

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zuzoa View Post
Try this:

Code:
sudo updatedb
locate -i -r wine | sed ‘s/ /\\ /g’ | sudo xargs rm -Rv
I would, but I kind of gave up on it and just made a Bash script which got every location from find | grep -i wine and deleted it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove libwine-print w/o removing wine jmoschetti45 Linux - Software 1 02-13-2010 10:56 PM
removing ever single trace of apache indexer Linux - Software 2 08-26-2009 06:12 PM
How to trace and disable the HTTP TRACE method in Apache 1.3.33 with FreeBSD? SomnathG Linux - Security 1 11-11-2008 09:41 AM
Removing Wine access to root dir saravkrish Linux - Software 2 11-22-2006 07:01 PM
removing WinE Selos Linux - Newbie 18 08-28-2003 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration