Apple - How to identify build number of a macOS installer?

The most reliable way of telling the build number is to check the SystemVersion.plist file inside the installer's OS image file (and not the build number of the installer app itself).

  1. Mount /Applications/Install macOS Sierra.app/Contents/SharedSupport/InstallESD.dmg
  2. Mount /Volumes/OS X Install ESD/BaseSystem.dmg (hidden file)
  3. Open /Volumes/OS X Base System/System/Library/CoreServices/SystemVersion.plist and examine the build number under <key>ProductBuildVersion</key>

To determine the macOS Sierra GM build number use:

cat "/Applications/Install macOS Sierra.app/Contents/Info.plist" | grep -A 1 DTSDKBuild

Please apply the leading portion of the path if your Install macOS Sierra.app resides elsewhere.