Sunday, June 18, 2017

Manually Removing GoogleSoftwareUpdate in macOS

Wrapped it in a basic check for it's existence to avoid having to sudo if not necessary:

if [ -d "/Library/Google/GoogleSoftwareUpdate/" ]; then
  echo "sudo'ing to remove GoogleSoftwareUpdate. Might need to enter your password."
  sudo rm -rf /Library/Google/GoogleSoftwareUpdate/
  sudo rm -rf /Users/**/Library/Google/GoogleSoftwareUpdate
  sudo rm -f /Users/**/Library/Logs/GoogleSoftwareUpdateAgent.log
  sudo rm -f /Users/**/Library/LaunchAgents/com.google.keystone.agent.plist
fi

Reboot to avoid a bunch of errors in your system log. Have to keep the software up to date on your own after removing it. Do it at your own risk.

No comments: