Disable red update badge on System Preferences Dock icon

OSX

Worked on Mojave

defaults write com.apple.systempreferences AttentionPrefBundleIDs 0

From: https://apple.stackexchange.com/questions/344278/how-can-i-disable-the-red-software-update-notification-bubble-on-the-system-pref