lifearttw / macfuse

Automatically exported from code.google.com/p/macfuse
0 stars 0 forks source link

No Simple Uninstall For Binaries (Draft Uninstall Script Included) #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by thbar...@icloud.com on 18 Jan 2007 at 4:28

GoogleCodeExporter commented 9 years ago
sudo shutdown -r now

Original comment by thbar...@icloud.com on 18 Jan 2007 at 4:29

GoogleCodeExporter commented 9 years ago
Let me know if I missed anything!

Original comment by thbar...@icloud.com on 18 Jan 2007 at 4:34

GoogleCodeExporter commented 9 years ago
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.

Original comment by jwight on 18 Jan 2007 at 4:11

GoogleCodeExporter commented 9 years ago
Also - does this script work on machines that have the .dmg version of the 
software installed?

Original comment by jwight on 18 Jan 2007 at 4:12

GoogleCodeExporter commented 9 years ago
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.

Original comment by mccune.j...@gmail.com on 22 Jan 2007 at 9:43

GoogleCodeExporter commented 9 years ago
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.

Original comment by matteo.c...@gmail.com on 23 Jan 2007 at 7:43

GoogleCodeExporter commented 9 years ago
Next release has an uninstall application.

Original comment by si...@gmail.com on 25 Jan 2007 at 6:41

GoogleCodeExporter commented 9 years ago
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.

Original comment by thoughtf...@gmail.com on 21 May 2007 at 4:26

GoogleCodeExporter commented 9 years ago
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..."

Original comment by thoughtf...@gmail.com on 21 May 2007 at 4:38

GoogleCodeExporter commented 9 years ago
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.strin
gs
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

Original comment by thoughtf...@gmail.com on 21 May 2007 at 7:08

GoogleCodeExporter commented 9 years ago
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

Original comment by williamh...@gmail.com on 1 Nov 2007 at 10:39

GoogleCodeExporter commented 9 years ago
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

Original comment by quocdat....@gmail.com on 9 Nov 2007 at 2:55

GoogleCodeExporter commented 9 years ago
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

Original comment by tczi...@gmail.com on 19 Nov 2007 at 11:29

GoogleCodeExporter commented 9 years ago
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).

Original comment by mote...@gmail.com on 25 Nov 2007 at 1:09

GoogleCodeExporter commented 9 years ago
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...

Original comment by thbar...@icloud.com on 23 Feb 2008 at 3:54

GoogleCodeExporter commented 9 years ago
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

Original comment by AnthonyS...@gmail.com on 24 Feb 2008 at 3:15

GoogleCodeExporter commented 9 years ago
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).

Original comment by si...@gmail.com on 25 Feb 2008 at 6:12

GoogleCodeExporter commented 9 years ago
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

Original comment by AnthonyS...@gmail.com on 2 Mar 2008 at 4:43

GoogleCodeExporter commented 9 years ago
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.

Original comment by geoffd...@gmail.com on 17 Apr 2008 at 4:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fire up a terminal window and do the following:

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

Original comment by jordanva...@gmail.com on 2 May 2008 at 5:08

GoogleCodeExporter commented 9 years ago
>>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

Original comment by osmund...@gmail.com on 12 May 2008 at 5:41

GoogleCodeExporter commented 9 years ago
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

Original comment by dckima...@gmail.com on 8 Aug 2008 at 10:04

GoogleCodeExporter commented 9 years ago
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

Original comment by alpar...@gmail.com on 24 Sep 2008 at 2:45

GoogleCodeExporter commented 9 years ago
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

Original comment by pascalva...@gmail.com on 9 Oct 2008 at 7:11

GoogleCodeExporter commented 9 years ago
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.

Original comment by pba...@gmail.com on 25 Mar 2009 at 7:31

GoogleCodeExporter commented 9 years ago
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.

Original comment by tob...@gmail.com on 29 Sep 2009 at 9:46

GoogleCodeExporter commented 9 years ago
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

Original comment by 4insi...@gmail.com on 12 Apr 2010 at 7:03

GoogleCodeExporter commented 9 years ago
MacFUSE Uninstaller: Can not find the Archive.bom for MacFUSE Core package.

I get this error after trying the uninstall script. 

Original comment by tvdb...@gmail.com on 18 Aug 2011 at 6:29

GoogleCodeExporter commented 9 years ago
When are they going to make this for mac os x lion

Original comment by signedadam on 8 Sep 2011 at 3:22

GoogleCodeExporter commented 9 years ago
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

Original comment by iXneo...@gmail.com on 9 Sep 2011 at 8:22

GoogleCodeExporter commented 9 years ago
"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?

Original comment by m.se...@gmail.com on 16 Nov 2011 at 11:07

GoogleCodeExporter commented 9 years ago
"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?

Original comment by m.se...@gmail.com on 16 Nov 2011 at 11:08

GoogleCodeExporter commented 9 years ago
"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?

Original comment by m.se...@gmail.com on 16 Nov 2011 at 11:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
thank you very much

Original comment by zxg...@gmail.com on 9 Jan 2012 at 4:33

GoogleCodeExporter commented 9 years ago
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

Original comment by vart...@gmail.com on 15 Apr 2013 at 8:25

Attachments: