Skip to content

Instantly share code, notes, and snippets.

@gsscoder
Created June 3, 2015 08:12
Show Gist options
  • Save gsscoder/17dd355a71a9bd531cbc to your computer and use it in GitHub Desktop.
Save gsscoder/17dd355a71a9bd531cbc to your computer and use it in GitHub Desktop.
Taken from http://goo.gl/majnZt.
#!/bin/sh -x
#This script removes Mono from an OS X System. It must be run as root
rm -r /Library/Frameworks/Mono.framework
rm -r /Library/Receipts/MonoFramework-*
for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do
(cd ${dir};
for i in `ls -al | grep /Library/Frameworks/Mono.framework/ | awk '{print $9}'`; do
rm ${i}
done);
done
@gsscoder
Copy link
Author

gsscoder commented Jun 3, 2015

I needed to uninstall it for install the new version using brew install mono on OS X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment