My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 36: No Simple Uninstall For Binaries (Draft Uninstall Script Included)
36 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jan 2007


Sign in to add a comment
 
Reported by thbar...@icloud.com, Jan 17, 2007
There is no simple uninstall for the MacFuse pre-compiled binaries.

Here is a simple script I've put together.

cd /usr/local/bin
sudo rm sshfs
sudo rm glib*
sudo rm pkg-config
sudo rm *gettext*
sudo rm *mount*

cd /usr/local/include
sudo rm -r fuse*
sudo rm -r glib-2.0
sudo rm gettext-po.h

cd /usr/local/lib
sudo rm -r pkgconfig
sudo rm -r glib*
sudo rm -r libg*
sudo rm -r *fuse*
sudo rm -r *gettext*

cd /usr/local/share
sudo rm -r glib*
sudo rm -r gettext

cd /System/Library/Extensions
sudo rm -r fusefs.kext

cd /System/Library/Filesystems
sudo rm -r fusefs.fs

sudo touch /System/Library/Extensions
shutdown -r now

Jan 17, 2007
#1 thbar...@icloud.com
sudo shutdown -r now
Jan 17, 2007
#2 thbar...@icloud.com
Let me know if I missed anything!
Jan 18, 2007
#3 jwight
Lot's of scary "sudo rm -r" statements there. You might want to abort the script if anything fails (like those cds). 
Have you run this script on a machine that doesnt' have fuse installed?

Please don't "shutdown -r now". That's really rude. Please just ask the user to reboot.

You might also want to sprinkle a few echo statements throughout the script (especially before the first sudo) to 
let the user know what is going on.
Jan 18, 2007
#4 jwight
Also - does this script work on machines that have the .dmg version of the software installed?
Jan 22, 2007
#5 mccune.j...@gmail.com
To find every file the package installer creates:

lsbom /Library/Receipts/MacFUSE*/*/Archive.bom

Any removal script should probably reference this bill of materials file for
forward-compatibility.
Jan 22, 2007
#6 matteo.c...@gmail.com
Hi,

in addition to check if a cd was successful (as suggested by jwight) you should be
more explicit in the file names: something like "sudo rm *mount*" is just too broad
(you will soon or later delete something not part of Fuse0.
Jan 24, 2007
Project Member #7 si...@gmail.com
Next release has an uninstall application.
Status: Fixed
May 21, 2007
#8 thoughtf...@gmail.com
Hi,

I had a few weird problems with macfuse... dvd/cd not mounting and just general
weirdness on my 10.4 pbook. I ran the script above, but I found something that may
need to be fixed in it

In the part where you change directories to /System/Library/Extensions and then
delete the fuse.kext file:

cd /System/Library/Extensions
sudo rm -r fusefs.kext

I found that fusefs.kext file was in the directory:
/Library/Extensions/fusefs.kext

Not the one in the script:
/System/Library/Extensions/

I am not sure if the installer put mine in the wrong dir or this something that needs
to be fixed in the script, but I thought everyone should know.





May 21, 2007
#9 thoughtf...@gmail.com
Based on my comments above about the uninstall script, I edited it and have reposted
it here:

<<< snip below this line -- do not include this line. The "#!/bin/bash" part must be
first line >>>>

#!/bin/bash

# Copy this script

cd /usr/local/bin
rm sshfs
sudo rm glib*
sudo rm pkg-config
sudo rm *gettext*
sudo rm *mount*

cd /usr/local/include
sudo rm -r fuse*
sudo rm -r glib-2.0
sudo rm gettext-po.h

cd /usr/local/lib
sudo rm -r pkgconfig
sudo rm -r glib*
sudo rm -r libg*
sudo rm -r *fuse*
sudo rm -r *gettext*

cd /usr/local/share
sudo rm -r glib*
sudo rm -r gettext

# Note: revised the target dir.
# previously was this dir which was incorrect:
# cd /System/Library/Extensions
# correct dir seems to be this one:
cd /Library/Extensions
sudo rm -r fusefs.kext

cd /System/Library/Filesystems
sudo rm -r fusefs.fs

sudo touch /System/Library/Extensions
# Note: Removed this line:
# shutdown -r now
# replaced it with a prompt at end of script telling user to restart:
echo " "
echo "PLEASE RESTART YOUR COMPUTER NOW..."



May 21, 2007
#10 thoughtf...@gmail.com
Actually, I have found a few other files that were not deleted when I first ran this
script. Specifically the .dylib files in the /usr/local/lib/ dir.

Instead of running the script again, I would recommend running the shell script
posted below with this command: 

find_macfuse_stuff.sh | grep -iv 'cannot open'

(of course you would have to name the script below 'find_macfuse_stuff.sh' after you
copy and paste it into a text file)


This script will just return the files that are still installed on your computer and
then you can go and delete them by hand one-by-one... I know it is a pain, but some
funky things were happening with my drives after I installed macfuse, so I wanted to
be very sure they were gone. 


script is below here:

#!/bin/bash

file /Library/Extensions/fusefs.kext
file /Library/Extensions/fusefs.kext/Contents
file /Library/Extensions/fusefs.kext/Contents/Info.plist
file /Library/Extensions/fusefs.kext/Contents/MacOS
file /Library/Extensions/fusefs.kext/Contents/MacOS/fusefs
file /Library/Extensions/fusefs.kext/Contents/Resources
file /Library/Extensions/fusefs.kext/Contents/Resources/English.lproj
file /Library/Extensions/fusefs.kext/Contents/Resources/English.lproj/InfoPlist.strings
file /Library/Extensions/fusefs.kext/Contents/Resources/load_fusefs
file /System/Library/Filesystems/fusefs.fs
file /System/Library/Filesystems/fusefs.fs/Contents
file /System/Library/Filesystems/fusefs.fs/Contents/Info.plist
file /System/Library/Filesystems/fusefs.fs/Contents/Resources
file /System/Library/Filesystems/fusefs.fs/Contents/Resources/English.lproj
file
/System/Library/Filesystems/fusefs.fs/Contents/Resources/English.lproj/InfoPlist.strings
file /System/Library/Filesystems/fusefs.fs/Contents/version.plist
file /System/Library/Filesystems/fusefs.fs/mount_fusefs
file /System/Library/Filesystems/fusefs.fs/uninstall-macfuse-core.sh
file /usr/local/include
file /usr/local/include/fuse
file /usr/local/include/fuse/fuse.h
file /usr/local/include/fuse/fuse_common.h
file /usr/local/include/fuse/fuse_common_compat.h
file /usr/local/include/fuse/fuse_compat.h
file /usr/local/include/fuse/fuse_lowlevel.h
file /usr/local/include/fuse/fuse_lowlevel_compat.h
file /usr/local/include/fuse/fuse_opt.h
file /usr/local/include/fuse.h
file /usr/local/include/ulockmgr.h
file /usr/local/lib/libfuse.0.dylib
file /usr/local/lib/libfuse.a
file /usr/local/lib/libfuse.dylib
file /usr/local/lib/libfuse.la
file /usr/local/lib/libulockmgr.1.dylib
file /usr/local/lib/libulockmgr.a
file /usr/local/lib/libulockmgr.dylib
file /usr/local/lib/libulockmgr.la
file /usr/local/lib/pkgconfig
file /usr/local/lib/pkgconfig/fuse.pc
file /usr/local/lib/.BC.IyWMJU
file /usr/local/lib/.BC.c0DOrC


Nov 1, 2007
#11 williamh...@gmail.com
Will this apply to the new version for Leopard?

I noticed after running through both scripts there was still some files that was not
removed.

I went and removed the following as well in addition


sudo rm /usr/local/sbin/mount_ntfs-3g
sudo rm -r /usr/local/share/doc/ntfs-3g
sudo rm /usr/local/share/man/man8/*ntfs-3g.8
Nov 9, 2007
#12 quocdat....@gmail.com
i found the Uninstall script at
./System/Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh
after a check with 
lsbom /Library/Receipts/MacFUSE*/*/Archive.bom

after a look at the script i think it really wipe out all of this own stuff.
i've installed MacFUSE0.40
Nov 19, 2007
#13 tczi...@gmail.com
Hi

I don't understand nothing about scripts and so on.
However I have a big problem. I have a external NTFS disk. This disk was recognized
by mac osx however it was just read mode. So I searched in the internet and I
installed MacFUSE and NTFS 3G. Nevertheless when I rebooted my macbook the NTFS disk
wasn't detected anymore.
No I was trying to uninstall the MacFuse thing but I don't know how. 

Can anyone one try to explain me how considering the fact that I don't understand
anything about scripts and terminal?

Thank you very much
TC
Nov 25, 2007
#14 mote...@gmail.com
You have to try to uninstall ntfs-3g package, I had the same problem, I had an 
external disk with 2 partition one in fat32 and one in NTFS..., after macfuse+ntf-3g 
the ntfs partition would no more mounted...
After uninstalling (just redownload the ntfs-3g.dmg, open it and double click 
uninstall script) ntfs-3g all worked perfectly... (ony in read mode..........) but 
better than nothing ;)

I hope no not have done much grammatical errors... :D (and hope that this would be 
useful).
Feb 22, 2008
#15 thbar...@icloud.com
Had no idea so much work had gone into my little script! This is why I love open-source, a guy who can't 
program recognizes a need, publishes a proof of concept, and much better programmers jump on board and 
refine it...
Feb 24, 2008
#16 AnthonyS...@gmail.com
Please forgive my ignorance but how do you run the script.
I cut and past the script into Script Editor but got the error msg "Expected expression but found "local"" 
when I try to run,save or compile it. 

Also I can't seem to be able to get to
./System/Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh
as there is no fusefs.fs in my Filesystems folder

Lastly, has anyone tried NTFS for Mac?
I found MacFuse really slow, copying 2mb by 2mb via my USB2 connection
I wonder if NTFS for Mac will be faster

Thanks


Feb 24, 2008
Project Member #17 si...@gmail.com
thbarnes, AnthonySiow, a few things:

1. uninstall-macfuse-core.sh is unrelated to the script pasted here. If you're
deducing that the former is based on the latter because they are deleting the same
files, well, they *have* to be deleting the same files, isn't it?

2. uninstall-macfuse-core.sh does numerous sanity checks before deleting
things--since you're deleting as the superuser, you really should be using it instead
of the one pasted here, which I haven't vetted, but even if it has no potential
issues, it's not a good ideas to cut-and-paste scripts and run them as root (what if
your cut-and-paste happens to be erroneous?)

3. AnthonySiow: it's a Unix *shell* script, not an AppleScript program. You don't run
it in the Script Editor. You run it from a command shell (such as from the Terminal
application.)

4. On Leopard, MacFUSE installs under /Library/Filesystems/fusefs.fs. On Tiger, it's
under /System/Library/Filesystems/fusefs.fs. If you don't find these directories
(depending on which OS version you are running), then it's likely that MacFUSE isn't
installed any more--well, at least the official version of MacFUSE. In the past,
there have been several packagings of MacFUSE by several people--I only support the
official version here.

5. MacFUSE doesn't do NTFS. ntfs-3g (a program that uses MacFUSE) does. The slowness
or fastness of ntfs-3g isn't to do with MacFUSE. (And it can be argued that it's not
to do with ntfs-3g either because on Linux, the same ntfs-3g would appear to be
faster.) Please look at the FAQ on this web site as to why ntfs-3g is slow on Mac OS
X. There are faster versions of ntfs-3g available too (see macntfs-3g.blogspot.com).
Mar 2, 2008
#18 AnthonyS...@gmail.com
Hi SIngh
1. Thanks for educating me about running the script in Terminal rather than Applescript
2. I have found /Library/Filesystems/fusefs.fs as I'm using Leopard
3. I know uninstall-macfuse-core.sh is unrelated to the script here. I assume uninstall-macfuse-core.sh is the 
program to remove macfuse. The problem is I cannot find uninstall-macfuse-core.sh on my system or in the 
DMG file that Macfuse came with. Where can I download a copy of it?
Thanks
Apr 17, 2008
#19 geoffd...@gmail.com
AnthonySiow

I have the same problem with MacFuse...getting it off my system. What did you finally do to get rid of all the 
components. I am using Leopard and a lot of the instuctions here don't point to the right files.


May 2, 2008
#21 jordanva...@gmail.com
Fire up a terminal window and do the following:

sudo -s
/Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh
May 12, 2008
#22 osmund...@gmail.com
>>Fire up a terminal window and do the following:

>>sudo -s /Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh

I'm grateful for this command as it removed all of the MacFUSE stuff, I think.
Shortly after installing MacFUSE I began experiencing applications crashing; Firefox
2.0.0.14 in particular crashed upon launching 1,2 and often 3 times before I could
use it. Running Disk Utility's Repair Permissions resulted in the sole
log comment "ACL found but not expected on "Library"."... Does anyone know what this
is? I searched for "ACL" inside Library and found "com.apple.pkg.ACL.bom." Since I
could not find any reference to removing the file with an install/uninstall app, I
removed it manually. Disk Utility's Repair Permissions still reports the same "ACL
found but not expected on "Library".

Any ideas?
Thanks,
Dan O
Aug 8, 2008
#23 dckima...@gmail.com
OK, I installed MacFuse amd NTFS-3G, and began to experiance problems with Boot 
Camp.  Can someone PLEASE help/explain how to uninstall these apps?  I am not a 
programmer and in this thread there appears to be alot of code describing the 
uninstall process?

Thanks
Sep 23, 2008
#24 alpar...@gmail.com
to remove NTFS-3G you will run the uninstall script included on dmg.
then on terminal run
sudo -s
/Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh

Oct 9, 2008
#25 pascalva...@gmail.com
I don't know what I'm doing wrong but when I copy/paste the lines above, nothing
happens with me....

Since I installed all this cr*p, my external HD works fine but I can't seem to able
to read FAT32 files (like my memorysticks...)

Anyone any help?

cheers
Mar 25, 2009
#26 pba...@gmail.com
Uninstall options for both ntfs-3g and macfuse are available under their control
panels located under System Preferences > Other. You can remove the MacFuse installer
from the System Preferences after uninstalling it by right-clicking (alt/secondary)
on it.
Sep 29, 2009
#27 tob...@gmail.com
Annoyingly, using the MacFuse "Remove MacFuse" option from the system prefs says it's
removing, and when it's done macfuse 2.1.5 is still installed.  I tried rebooting and
doing it again, no luck.
Apr 12, 2010
#28 4insi...@gmail.com
I am also trying to install MacFUSE and still cant deinstall it or install it..

problem turned up when going from Tiger to Leopard - related to my ExpanDrive program no longer working!

The I try the scripts it just says 
bash: /Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh: No such file or directory

I also have "ACL found but not expected on "Library". issues when running permissions repair


Mark

Aug 18, 2011
#29 tvdb...@gmail.com
MacFUSE Uninstaller: Can not find the Archive.bom for MacFUSE Core package.

I get this error after trying the uninstall script. 
Sep 8, 2011
#30 signedadam
When are they going to make this for mac os x lion
Sep 9, 2011
#31 iXneo...@gmail.com
There's a new project with the name OSXFUSE. Haven't seen activity here in a while in terms of new releases. https://groups.google.com/forum/#!forum/osxfuse-group
Nov 16, 2011
#32 m.se...@gmail.com
"Comment 29 by tvdb...@gmail.com, Aug 18, 2011
MacFUSE Uninstaller: Can not find the Archive.bom for MacFUSE Core package.

I get this error after trying the uninstall script. "

i get the same? and also from the sys. pref. it says its removing but then it doesnt.

im on OSX lion 10.7.2

HOW can I delete macfuse?
Nov 16, 2011
#33 m.se...@gmail.com
"Comment 29 by tvdb...@gmail.com, Aug 18, 2011
MacFUSE Uninstaller: Can not find the Archive.bom for MacFUSE Core package.

I get this error after trying the uninstall script. "

i get the same? and also from the sys. pref. it says its removing but then it doesnt.

im on OSX lion 10.7.2

HOW can I delete macfuse?
Nov 16, 2011
#34 m.se...@gmail.com
"Comment 29 by tvdb...@gmail.com, Aug 18, 2011
MacFUSE Uninstaller: Can not find the Archive.bom for MacFUSE Core package.

I get this error after trying the uninstall script. "

i get the same? and also from the sys. pref. it says its removing but then it doesnt.

im on OSX lion 10.7.2

HOW can I delete macfuse?
Jan 9, 2012
#36 zxg...@gmail.com
thank you very much

Apr 15, 2013
#37 vart...@gmail.com
Here is how I removed MacFUSE-2.0.3,2 from OS X Mountain Lion 10.8.3 (Can also be used for Lion, Snow Leopard, Leopard, Etc.)

(This fixes the error: Can not find the Archive.bom for MacFUSE Core package)

(Reason? I am moving over to Fuse OS X  v.2.5.5)

Steps To Follow: 

Referenced from the Post 

Re: Can't Uninstall MacFUSE under LionMichael Tavernier Fri, 26 Aug 2011 03:17:48 -0700
http://www.mail-archive.com/macfuse@googlegroups.com/msg02564.html

Thank You Michael

1. Find the /System/Library/Filesystems/fusefs.fs/uninstall-macfuse-core.sh file and open it

2. Find the entry BOMFILE="$PACKAGE_RECEIPT/Contents/Archive.bom"
    ;;
  12*)

3. 12 references the OS Version, in this case 12 = Mountain Lion
You can also use the following entries 11 = Lion, 10 = Snow Leopard, 9 = Leopard, etc.

4. Edit/Save the uninstall-macfuse-core.sh file

5. Open Terminal

6. Run the following command

7. sudo -s /Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh

8. The uninstaller runs and begins removing files and dirs beginning with the one below

MacFUSE Uninstaller: Removing file: '//./Library/Application Support/Developer/Shared/Xcode/Project Templates/MacFUSE'

9. Open System Preferences, Control Click on MacFUSE Preference Pane, select remove MacFuse Preference Pane

10. Done 

:-)

Attached is the MacFUSE Uninstall Output.rtf file

MacFUSE Uninstall Output.rtf
18.9 KB   View   Download
Sign in to add a comment

Powered by Google Project Hosting