Skip to content

Instantly share code, notes, and snippets.

@guimondmm
Created February 2, 2020 21:59
Show Gist options
  • Save guimondmm/b3512517f0a7212e2a02f45ab8d65ba1 to your computer and use it in GitHub Desktop.
Save guimondmm/b3512517f0a7212e2a02f45ab8d65ba1 to your computer and use it in GitHub Desktop.
Ignore upgrade to macOS 10.15 Catalina + dismiss notification badge and delete already downloaded files
# Ignore the upgrade and dismiss the notification badge
killall "System Preferences"
sudo softwareupdate --ignore "macOS Catalina"
defaults delete com.apple.preferences.softwareupdate LatestMajorOSSeenByUserBundleIdentifier
softwareupdate -l
# Check the size of the Updates folder
du -sh /Library/Updates/
# To reclaim some of that space, reboot into macOS Recovery (hold ⌘-R at boot)
# Open a terminal (Utilities > Terminal), then carefully type in the following command
diskutil apfs unlockVolume "Macintosh HD" && rm -Rf /Volumes/Macintosh\ HD/Library/Updates/* && reboot
# CAUTION! In macOS Recovery, commands are run as root!
# Any typo may result in irreversible data loss!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment