LoginSignup
5
4

More than 5 years have passed since last update.

Install OS X Yosemite.appのバージョンを知るには

Last updated at Posted at 2014-11-22

Yosemiteに関わらず、Mavericksでも同じだが、AppStoreからダウンロードしたOS Xのインストーラのバージョンを知るには以下のようにする。

/Applications/Install\ OS\ X\ Yosemite.appのところは、ダウンロードしたOS Xによって適宜変更する。
なお、ディスクイメージのマウント状況によって、/Volumesの後のパスが若干異なる場合があるので注意。どのパスにマウントされるかは、hdiutilコマンドの結果に出力されるのでそれを参考にする。

hdiutil mount -noverify /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg
hdiutil mount -noverify /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg
cat /Volumes/OS\ X\ Base\ System/System/Library/CoreServices/SystemVersion.plist

出力結果の例

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>ProductBuildVersion</key>
    <string>14B25</string>
    <key>ProductCopyright</key>
    <string>1983-2014 Apple Inc.</string>
    <key>ProductName</key>
    <string>Mac OS X</string>
    <key>ProductUserVisibleVersion</key>
    <string>10.10.1</string>
    <key>ProductVersion</key>
    <string>10.10.1</string>
</dict>
</plist>

ProductBuildVersionProductVersionの値を見ると、どのバージョンのインストーラなのか判別できる。

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4