苹果电脑 MacOS 关闭系统更新
2026-12-01 13:09:26    2    0    0
maker

 

图形界面关闭系统更新:

 

 

终端命令行关闭系统更新:

//禁止自动下载和安装
sudo softwareupdate --schedule off
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool false
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticallyInstallMacOSUpdates -bool false
defaults delete ~/Library/Preferences/com.apple.systempreferences.plist AttentionPrefBundleIDs
killall Dock
//去掉系统设置红色更新角标
defaults write com.apple.SoftwareUpdate MajorOSUserNotificationDate -date "2056-02-15 22:00:00 +0000"

 

屏蔽更新服务器

sudo cp /etc/hosts /etc/hosts.bak
sudo nano /etc/hosts

在文件末尾添加:

127.0.0.1 swscan.apple.com
127.0.0.1 swdist.apple.com
127.0.0.1 gdmf.apple.com
127.0.0.1 mesu.apple.com

按 Control+O、回车保存,再按 Control+X 退出。然后刷新缓存:

sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

如果用了代理或 VPN,这些屏蔽可能不生效。


清除红点

退出“系统设置”,运行:

defaults delete ~/Library/Preferences/com.apple.systempreferences.plist AttentionPrefBundleIDs
killall Dock

提示 key 不存在可以忽略。然后重启电脑。如果软件更新页面里还留着旧提示,可能是缓存,仅清红点未必能去掉它;把截图发给我再处理。


断网清除缓存:

sudo defaults delete /Library/Preferences/com.apple.SoftwareUpdate
defaults delete ~/Library/Preferences/com.apple.systempreferences.plist AttentionPrefBundleIDs
sudo reboot


 

 

 

Pre: 苹果电脑MacOS 设置不进省电模式不息屏

Next: 电脑通过无线网络或者有线网络投屏到电视中显示桌面

2
Table of content