Ticket #42703: x11cleanse

File x11cleanse, 864 bytes (added by davidfavor (David Favor), 11 years ago)
Line 
1#!/usr/bin/env bash
2
3# flocate -a x11 | egrep -v -e /opt/local -e MacPorts -e Xcode \
4                   -e CrossOver.app -e Kindle\ Previewer.app -e Wineskin \
5                   -e smartbuild -e Frameworks
6
7set -x
8
9launchctl unload /Library/LaunchAgents/org.macosforge.xquartz*.plist
10launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz*.plist
11
12rm -rfv /Applications/Utilities/XQuartz.app \
13        /Applications/Utilities/X11.app \
14        /Library/*/org.macosforge.xquartz.* \
15        /Users/david/Library/Caches/*X11* \
16        /Users/david/Library/Saved\ Application\ State/org.macosforge.xquartz.X11* \
17        /usr/X11 /usr/X11R6 /opt/X11 \
18        /Users/david/Library/Preferences/org.macosforge.xquartz.X11.plist \
19        $(find /private -name '*X11*') \
20        $(find /private -name '*xquartz*')
21
22pkgutil --forget org.macosforge.xquartz.pkg