Something broke and you wonder whether an update came in overnight. The install history is one command away.
Ask softwareupdate for its history:
softwareupdate --history
You get a table with display name, version and the date and time of each install:
Display Name Version Date
------------ ------- ----
macOS Tahoe 26.5 26.5 20-05-2026, 12:55:34
Command Line Tools for Xcode 26.5 26.5 20-05-2026, 14:48:15
It includes the quiet ones too: Command Line Tools, security responses and background data updates that never showed a dialog. When a compiler or git starts acting differently, this is where I’d check whether the Command Line Tools changed that day.
To search for one thing:
softwareupdate --history | grep -i 'command line tools'
No sudo needed, and the answer comes back right away. The help text says that by default it only lists updates installed by softwareupdate, which covers what System Settings installs, but not apps from the App Store. For those, the App Store’s own account page shows purchase and update history. The date format follows your region settings, so don’t parse it in a script that runs on other Macs.
Further reading: softwareupdate man page (macOS)