본문 바로가기

맥(솔라리스)

macOS 버전 정보 확인(command)

반응형

macOS 버전 정보 확인(command)

macOS 버전 확인

$ sw_vers -h
Usage: sw_vers [-productName|-productVersion|-buildVersion]

 

sw_vers
$ sw_vers
ProductName:	macOS
ProductVersion:	12.5
BuildVersion:	21G72

system_profiler 명령

$ system_profiler -h
Usage: system_profiler [-listDataTypes]
       system_profiler [-xml | -json] [-timeout n] [-detailLevel n]
       system_profiler [-xml | -json] [-timeout n] [dataType1 ... dataTypeN]

  -detailLevel n    specifies the level of detail for the report
                      mini = short report (contains no identifying or personal information)
                      basic = basic hardware and network information
                      full = all available information

  -listDataTypes    lists all the available datatypes

  -xml              generates xml output instead of plain text
                    if redirected to a file with the extension ".spx"
                    the file can be opened in System Profiler.app

  -json             generates json output instead of plain text

  -timeout          specifies the maximum time to spend gathering information
                    the default is 180 seconds, 0 means no timeout

  Redirect stderr to /dev/null to suppress progress and error messages.

Examples:

  system_profiler
     Generates a text report with the standard detail level.

  system_profiler -detailLevel mini
     Generates a short report without identifying/personal information.

  system_profiler -listDataTypes
     Shows a list of the available data types.

  system_profiler SPSoftwareDataType SPNetworkDataType
     Generates a text report containing only software and network data.

  system_profiler -xml >MySystem.spx
     Creates a XML file which can be opened by System Profiler.app

 

system_profiler SPSoftwareDataType
$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 12.5 (21G72)
      Kernel Version: Darwin 21.6.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: MacBook
      User Name: test (test)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 3:16
system_profiler | less
728x90

SystemVersion.plist 파일 사용

cat /System/Library/CoreServices/SystemVersion.plist

 

cat /System/Library/CoreServices/.SystemVersionPlatform.plist
$ cat /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>21G72</string>
	<key>ProductCopyright</key>
	<string>1983-2022 Apple Inc.</string>
	<key>ProductName</key>
	<string>macOS</string>
	<key>ProductUserVisibleVersion</key>
	<string>12.5</string>
	<key>ProductVersion</key>
	<string>12.5</string>
	<key>iOSSupportVersion</key>
	<string>15.6</string>
</dict>
</plist>

GUI를 사용하여 macOS 버전 찾기

m1

macOS and OS X version code-names

macOS Latest version
macOS Monterey 12.5
macOS Big Sur 11.6.8
macOS Catalina 10.15.7
macOS Mojave 10.14.6
macOS High Sierra 10.13.6
macOS Sierra 10.12.6
OS X El Capitan 10.11.6
OS X Yosemite 10.10.5
OS X Mavericks 10.9.5
OS X Mountain Lion 10.8.5
OS X Lion 10.7.5
Mac OS X Snow Leopard 10.6.8
Mac OS X Leopard 10.5.8
Mac OS X Tiger 10.4.11
Mac OS X Panther 10.3.9
Mac OS X Jaguar 10.2.8
Mac OS X Puma 10.1.5
Mac OS X Cheetah 10.0.4

 

참고URL

- https://www.cyberciti.biz/faq/mac-osx-find-tell-operating-system-version-from-bash-prompt/

- https://support.apple.com/en-us/HT201260

 

728x90
반응형