Skip to content

Instantly share code, notes, and snippets.

@grahampugh
Last active October 19, 2021 14:38
Show Gist options
  • Save grahampugh/a027206e47a1e4e9f346b884dd8cfdeb to your computer and use it in GitHub Desktop.
Save grahampugh/a027206e47a1e4e9f346b884dd8cfdeb to your computer and use it in GitHub Desktop.
Script to prevent the macOS Upgrade Notification popup, or delete it if it's already installed
#!/bin/bash
# Disable macOS Upgrade notifications
# Step 1: prevent the update which brings the notification down
softwareupdate --ignore macOSInstallerNotification_GM
echo
# Step 2: delete the file if it's already on the computer
if [[ -d /Library/Bundles/OSXNotification.bundle ]]; then
echo "OSXNotification.bundle found. Deleting..."
rm -rf /Library/Bundles/OSXNotification.bundle ||:
else
echo "OSXNotification.bundle not found."
fi
@cpunix
Copy link

cpunix commented Nov 6, 2019

Thanks for the script! Does it include "Updates Available" in OSXNotification.bundle?

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