Sub topic 6
Verifying your version and reviewing history
After an update, you should confirm that it installed and that the Mac is running what you expect. This chapter covers the places macOS reports its version, how to read version and build numbers, how to review update history, and how to turn these checks into a repeatable routine.
It assumes you can navigate System Settings, open Terminal, and run simple shell commands. You don't need administrator rights for any command here, because all of them only read information.
Why verify at all
An update can fail quietly. The restart finishes, you log in, and everything looks normal, but the Mac may still be on the old release. A failed update can also roll back, or a background update may have stopped partway through. Checking afterward takes under a minute and gives you evidence for later steps, such as troubleshooting or reporting a problem.
Verification also answers questions that come up before an update:
- Is this Mac already on the release a security bulletin mentions?
- Did the update I scheduled yesterday run?
- Which security data updates have been installed, and when?
Three places that show the version
The same information appears in three places. Use whichever fits the moment.
| Place | How to open it | Best for |
|---|---|---|
| System Settings, General, About | Apple menu, System Settings, General, About | A quick visual check |
| System Settings, General, Software Update | Same window, Software Update | Seeing whether more updates are pending |
| `sw_vers` in Terminal | Terminal | Scripts, remote sessions, exact build number |
The graphical check
Open System Settings, choose General, then About. The window shows the macOS name (for example "macOS Sequoia") and the version number. On many releases, clicking the version line cycles through the version and the build number.
Then open Software Update in the same section. If it says the Mac is up to date and shows the installed version, the check is complete. If an update is listed, the Mac is not current, whatever the About pane says.
The command-line check
The sw_vers command prints the product name, version, and build number:
sw_versTypical output looks like this. The values are an example, and yours will differ:
ProductName: macOS
ProductVersion: 15.1
BuildVersion: 24B83If you only need one value, for example in a script, ask for it directly:
sw_vers -productVersion
sw_vers -buildVersionOn releases that support Rapid Security Responses, sw_vers -productVersionExtra prints the supplemental letter, such as (a). It prints nothing if no such response is installed. Those responses, where Apple offered them, changed what the Mac was running without changing the main version number, so the extra field matters when you compare against a security bulletin.
Reading version and build numbers
A macOS version has up to three numbers separated by dots, such as 15.1.1:
- The first number is the major release. A change here is a major upgrade.
- The second number is the point update. These add features and fixes, and often security fixes.
- The third number, when present, is a smaller patch, usually a targeted fix.
If the third number is missing, treat it as zero. 15.1 and 15.1.0 are the same release. This matters when you compare versions in scripts.
The build number identifies the exact compiled software. For 24B83:
- The leading digits (
24) correspond to the Darwin kernel major version underlying that macOS release. - The letter (
B) advances as Apple ships later builds of that release line. - The trailing digits (
83) identify the specific build within that line.
You don't need to decode every piece. The practical rule is that two Macs showing the same version can still have different builds. This happens with beta software, with a release that Apple re-issued for new hardware, or with a supplemental update. If a bulletin or an Apple support article cites a build number, compare the build, not only the version.
You can see the kernel side of the number with uname:
uname -rThe first number printed (for example 24) should match the leading digits of the build.
Comparing against what Apple released
Knowing your version is only half the check. To judge whether it's current, compare it with what Apple offers. There are two reliable ways.
- Open Software Update (or run
softwareupdate --list, covered in the command-line chapter). If nothing newer is offered for this Mac, you are current for this Mac. - Check Apple's published security release notes, which list each release and the fixes it contains. These are on Apple's support site under "Apple security releases".
Keep in mind that the newest macOS Apple has released may not be offered to your Mac. An older Mac can be limited to an earlier major release, and Apple may still ship security updates for older releases. So "current" means the latest update available for your Mac, which may differ from the latest macOS overall.
Reviewing update history
The version tells you where the Mac is. The history tells you how it got there.
The `softwareupdate --history` command
softwareupdate --historyThe output is a table with a display name, a version, and an install date. An illustrative sample:
Display Name Version Date
macOS Sequoia 15.1 15.1 10/29/2025, 09:12:44
XProtectPlistConfigData 5290 10/22/2025, 03:01:17
MRTConfigData 1.96 10/10/2025, 03:00:51
Command Line Tools for Xcode 16.0 09/30/2025, 14:22:08Things to know when reading it:
- It lists more than macOS releases. Entries such as
XProtectPlistConfigDataandMRTConfigDataare small security data updates that macOS installs in the background, usually without a restart. Seeing many of these is normal. - Items such as Command Line Tools appear because Software Update delivered them.
- Dates use your locale and time zone, so the format may differ from the sample.
- The list covers updates Software Update installed. It doesn't list every app you installed by other means.
To look for one item, filter the output:
softwareupdate --history | grep -i "macOS"To see only the most recent entries:
softwareupdate --history | head -n 15Sorting by date is not guaranteed by the command's formatting, so check the dates yourself instead of assuming the first line is the newest.
The wider view with `system_profiler`
For a longer record that includes apps installed from the App Store and from installer packages, use the system profiler:
system_profiler SPInstallHistoryDataTypeThis produces one block per installed item, with its version, source, and install date. It can take several seconds and prints a lot, so filter it:
system_profiler SPInstallHistoryDataType | grep -A 5 "macOS"Use softwareupdate --history when you want to know what Apple's update system did. Use system_profiler when you want everything that was installed, including software from other sources.
When the last check ran
The Software Update preferences record when the Mac last contacted Apple's update service. This helps when you suspect the Mac has not been checking:
defaults read /Library/Preferences/com.apple.SoftwareUpdateLook for keys whose names include LastSuccessfulDate or LastFullSuccessfulDate. Key names can vary between macOS releases, so read the whole output rather than relying on one key. A date weeks in the past on a Mac that should check daily points to a connectivity or configuration problem, which the troubleshooting chapter covers.
What the verification workflow looks like
The checks form a short loop. The diagram shows the order and what each outcome means.
Looking at the install log
When the history does not show the update you expected, the installer log can say why. Show the most recent Software Update lines:
grep -i softwareupdate /var/log/install.log | tail -n 20You are looking for lines that mention the update's name followed by words such as "failed", "error", or a result code. Some messages are harmless, so look for a pattern and the time window around your attempt. A message that appears at the time of the failed restart is more meaningful than one from days earlier.
Two limits apply:
install.logis rotated, so old entries eventually disappear. Check soon after the problem.- Some update activity is recorded in the unified log instead. If
install.logshows nothing useful, the troubleshooting chapter describes the next step.
Automating the check
On several Macs, or as part of a routine, a script can verify the minimum version for you. The script below exits with a non-zero status when the Mac is older than a version you set. It uses only features available in the bash that ships with macOS.
#!/bin/bash
# Usage: ./check-macos.sh 15.1
required="${1:?Usage: $0 MIN_VERSION, for example 15.1}"
current="$(sw_vers -productVersion)"
# Returns success if version $1 is greater than or equal to version $2.
version_ge() {
local a b i x y
IFS=. read -r -a a <<< "$1"
IFS=. read -r -a b <<< "$2"
for i in 0 1 2; do
x="${a[i]:-0}"
y="${b[i]:-0}"
if (( 10#$x > 10#$y )); then return 0; fi
if (( 10#$x < 10#$y )); then return 1; fi
done
return 0
}
if version_ge "$current" "$required"; then
echo "OK: macOS $current meets the minimum of $required"
else
echo "OUTDATED: macOS $current is older than $required" >&2
exit 1
fiSave it as check-macos.sh, make it executable with chmod +x check-macos.sh, and run ./check-macos.sh 15.1. The comparison is numeric, field by field, and treats a missing field as zero. A plain text comparison would wrongly rank 15.10 below 15.9, which is why the script doesn't compare the strings directly.
Common errors and misreadings
- Trusting the About pane alone. About shows the installed version, but it says nothing about whether more updates are pending. Always check Software Update too.
- Comparing versions as text. As noted above,
15.10is newer than15.9. Compare field by field. - Reading background data updates as failures. Entries such as
XProtectPlistConfigDataare routine. - Assuming "latest" is the same for every Mac. The newest update offered to your Mac depends on its hardware and the release line it can run.
- Ignoring the build number. Two Macs on the same version may differ in build. For beta or supplemental releases, the build is what identifies the software.
- Checking too late. Log files rotate. If an update seems to have failed, check the log the same day.
Summary
Verify an update with sw_vers or the About pane, then confirm in Software Update that nothing is pending. Use softwareupdate --history to see what Apple's update system installed and when. Use system_profiler SPInstallHistoryDataType for a wider record, and install.log to explain a missing entry. Compare version numbers field by field, and use the build number when you need an exact match.
Exercise
A script compares sw_vers -productVersion to a minimum using a plain string comparison. A Mac reports 15.10, and the minimum is 15.9. Why is the result wrong, and how should the comparison be done?
Show answer
A string comparison reads character by character, so "15.10" sorts before "15.9" because "1" is less than "9" in the third character. Numerically, 10 is greater than 9, so 15.10 is the newer release. Split each version at the dots and compare the fields as numbers, treating a missing field as zero, as the check-macos.sh script does.
Exercise
After an overnight update, About shows the version you expected, but softwareupdate --history shows no macOS entry for it and shows many XProtect and MRTConfigData entries. Is something wrong, and what would you check next?
Show answer
The XProtect and MRTConfigData entries are normal background security data updates and do not indicate a problem. The version in About is what matters for the installed release, so the Mac may already be on the expected version, for example if the update was installed some other way or earlier than the part of the history you looked at. Next, read the full history with the dates, run sw_vers to confirm the build number, and, if the entry is still unexplained, check system_profiler SPInstallHistoryDataType and the lines in /var/log/install.log from around the update time.
Exercise
Which command would you run first to find out whether a Mac is running the same exact build as another Mac, and why is the version number alone not enough?
Show answer
Run sw_vers -buildVersion on both Macs and compare the results. The version number can be identical while the build differs, for example with a beta, a supplemental release, or a build reissued for particular hardware.