Skip to content

Instantly share code, notes, and snippets.

@rawman
Created February 7, 2016 12:10
Show Gist options
  • Save rawman/a7bff570bf49c5fafcc9 to your computer and use it in GitHub Desktop.
Save rawman/a7bff570bf49c5fafcc9 to your computer and use it in GitHub Desktop.
rm -r /Library/Frameworks/Mono.framework
rm -r /Library/Receipts/MonoFramework-*
rm /Users/roman/.config/.mono
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
#remve all borken symlinks
find -L /usr/bin -type l -exec rm {} +
find -L /usr/share/man/man1 -type l -exec rm {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment