Skip to content

Instantly share code, notes, and snippets.

@newswim
Forked from katychuang/remove_brew-mongo_osx.sh
Created October 22, 2015 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newswim/723553d9c90856cc7784 to your computer and use it in GitHub Desktop.
Save newswim/723553d9c90856cc7784 to your computer and use it in GitHub Desktop.
remove mongodb that was installed via brew
#!/usr/bin/env sh
# checks to see if running
launchctl list | grep mongo
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl remove homebrew.mxcl.mongodb
pkill -f mongod
rm -f ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
brew uninstall mongodb
# double check existence
ls -al /usr/local/bin/mong*
ls -al ~/Library/LaunchAgents
@newswim
Copy link
Author

newswim commented Oct 22, 2015

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist

returns

/usr/local/Cellar/mongodb/3.0.4/homebrew.mxcl.mongodb.plist: Invalid property list

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