macOS系统关闭Software Update系统更新
1. 步骤
打开/etc/hosts
:
sudo vi /etc/hosts
加入以下内容:
# Apple
## Mac Software Update
#/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdated
127.0.0.1 swdist.apple.com
127.0.0.1 swscan.apple.com
127.0.0.1 swcdn.apple.com
#127.0.0.1 xp.apple.com
#/usr/libexec/mobileassetd
127.0.0.1 gdmf.apple.com
127.0.0.1 xp.apple.com
#/usr/libexec/nsurlsessiond
127.0.0.1 mesu.apple.com
127.0.0.1 updates.cdn-apple.com #download url
2. 去除设置的红点提示
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0
Killall Dock
3. 忽略更新提示
忽略大版本更新提示:
sudo softwareupdate --ignore "macOS Big Sur"
sudo softwareupdate --ignore "macOS Monterey"
4. 恢复
恢复更新提示:
sudo softwareupdate --reset-ignored