{"id":15717504,"url":"https://github.com/jonelo/osxapp_vers","last_synced_at":"2025-05-06T21:02:56.502Z","repository":{"id":28182664,"uuid":"31684276","full_name":"jonelo/osxapp_vers","owner":"jonelo","description":"Get product name, exact product version and build version from an Apple Install [Mac OS X|OS X|macOS]*.app or from a mounted Mac OS X Install CD/DVD image","archived":false,"fork":false,"pushed_at":"2024-10-29T21:02:55.000Z","size":82,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T02:51:11.111Z","etag":null,"topics":["apple","bash","macos","macos-app","macos-big-sur","macos-catalina","macos-el-capitan","macos-high-sierra","macos-lion","macos-mavericks","macos-mojave","macos-sierra","macos-ventura","macos-yosemite","macosx","osx","osxapp-vers","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonelo.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.paypal.me/jonelo"]}},"created_at":"2015-03-04T22:54:34.000Z","updated_at":"2025-01-15T21:27:44.000Z","dependencies_parsed_at":"2024-08-10T18:21:48.556Z","dependency_job_id":"afd6027d-836a-4b37-b289-a38f97c4a375","html_url":"https://github.com/jonelo/osxapp_vers","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonelo%2Fosxapp_vers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonelo%2Fosxapp_vers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonelo%2Fosxapp_vers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonelo%2Fosxapp_vers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonelo","download_url":"https://codeload.github.com/jonelo/osxapp_vers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769396,"owners_count":21801375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","bash","macos","macos-app","macos-big-sur","macos-catalina","macos-el-capitan","macos-high-sierra","macos-lion","macos-mavericks","macos-mojave","macos-sierra","macos-ventura","macos-yosemite","macosx","osx","osxapp-vers","shell"],"created_at":"2024-10-03T21:50:23.075Z","updated_at":"2025-05-06T21:02:56.445Z","avatar_url":"https://github.com/jonelo.png","language":"Shell","funding_links":["https://www.paypal.me/jonelo"],"categories":[],"sub_categories":[],"readme":"osxapp_vers\n===========\n\nWhat the project is for\n-----------------------\nThe script called osxapp_vers finds the product name, the complete product version, and build version in an `Install*OS X*.app` package, in an `Install macOS*.app` package or in a mounted CD/DVD image called `Mac OS X Install *` and prints the info out like the macOS' `/usr/bin/sw_vers` does for an installed macOS product.\n\nThe idea for this has been described at [my blog](https://loefflmann.blogspot.de/2015/03/finding-os-x-version-and-build-in-install-os-x-app.html).\n\n\nWhat are the system requirements\n--------------------------------\n* At least Mac OS X 10.6.8 (Snow Leopard) in order to run the bash script, older releases haven't been tested.\n\n\nWhat are the input requirements\n-------------------------------\n* `Install macOS Sequoia.app` or\n* `Install macOS Sonoma.app` or\n* `Install macOS Ventura.app` or\n* `Install macOS Monterey.app` or \n* `Install macOS Big Sur.app` or\n* `Install macOS Catalina.app` or\n* `Install macOS Mojave.app` or\n* `Install macOS High Sierra.app` or\n* `Install macOS Sierra.app` or\n* `Install OS X El Capitan.app` or\n* `Install OS X Yosemite.app` or\n* `Install OS X Mavericks.app` or\n* `Install OS X Mountain Lion.app` or\n* `Install Mac OS X Lion.app` from the Apple App Store (1st public version or any update release) or\n* a bootable macOS install media that has been created by Apple's `createinstallmedia`. See also [How to create a bootable installer for macOS?](https://support.apple.com/en-us/HT201372) or\n* a mounted Mac OS X Install CD/DVD image such as `Mac OS X Install DVD`, `Mac OS X Install CD` or `Mac OS X Install Disk`\n\n\u003e [!TIP]\n\u003e The script also works with bootable macOS install media that has been created and patched by the [OpenCore Legacy Patcher](https://dortania.github.io/OpenCore-Legacy-Patcher/).\n\n\nHow to configure and install it\n-------------------------------\nDownload the osxapp_vers file from GitHub to a folder of your choice.\n\n```bash\n% curl -Ls https://bit.ly/osxapp_vers \u003e osxapp_vers\n```\n\nSet execute permissions.\n\n```bash\n% chmod +x ./osxapp_vers\n```\n\nIn order to bypass a check that prevents the script from investigating an unknown macOS release, you can set the NOCHECK environment variable.\n\n```bash\n% export NOCHECK=1\n```\n\nIn order to see details from the mount actions and additional messages, you can enable debug output by exporting the DEBUG environment variable. Usually there is no need to do that.\n\n```bash\n% export DEBUG=/dev/stdout\n```\n \nIf you want to disable debug mode again, enter\n\n```bash\n% export DEBUG=\n```\n\nHow to run it\n-------------\nExecute.\n\n```bash\n% ./osxapp_vers\n```\n\nHow to run it without installing it\n-----------------------------------\n```bash\n% curl -Ls https://bit.ly/osxapp_vers | bash\n```\n\n\nExamples of how to use it or get it running\n-------------------------------------------\nBy default, if you don't specify any program parameters, the script reads all `Install*OS X*.app`, and `Install macOS X*.app` known to Spotlight and all `/Volumes/Mac OS X Install *` and prints out product name, product version and build version for each macOS that those installers are loaded with.\n\nExample output from runs without any program parameters:\n\n```bash\n/Volumes/Mac OS X Install DVD:\nProductName:    Mac OS X\nProductVersion: 10.5\nBuildVersion:   9A581\n\n/Applications/Install Mac OS X Lion.app:\nProductName:    Mac OS X\nProductVersion: 10.7.5\nBuildVersion:   11G63\n\n/Applications/Install OS X Mountain Lion.app:\nProductName:    Mac OS X\nProductVersion: 10.8.5\nBuildVersion:   12F45\n\n/Applications/Install OS X Mavericks.app:\nProductName:    Mac OS X\nProductVersion: 10.9.4\nBuildVersion:   13E28\n\n/Applications/Install OS X Yosemite.app:\nProductName:    Mac OS X\nProductVersion: 10.10.2\nBuildVersion:   14C109\n\n/Applications/Install OS X El Capitan.app:\nProductName:    Mac OS X\nProductVersion:\t10.11.5\nBuildVersion:   15F34\n\n/Applications/Install macOS Sierra.app:\nProductName:    Mac OS X\nProductVersion:\t10.12\nBuildVersion:   16A323\n\n/Applications/Install macOS High Sierra.app:\nProductName:\tMac OS X\nProductVersion:\t10.13\nBuildVersion:\t17A365\n\n/Applications/Install macOS Mojave.app:\nProductName:\tMac OS X\nProductVersion:\t10.14\nBuildVersion:\t18A391\n\n/Applications/Install macOS Catalina.app:\nProductName:\tMac OS X\nProductVersion:\t10.15\nBuildVersion:\t19A583\n\n/Applications/Install macOS Big Sur.app:\nProductName:\tmacOS\nProductVersion:\t11.1\nBuildVersion:\t20C69\n\n/Applications/Install macOS Monterey.app:\nProductName:\tmacOS\nProductVersion:\t12.0.1\nBuildVersion:\t21A559\n\n/Applications/Install macOS Ventura.app:\nProductName:\tmacOS\nProductVersion:\t13.0\nBuildVersion:\t22A380\n\n/Applications/Install macOS Sonoma.app:\nProductName:\tmacOS\nProductVersion:\t14.0\nBuildVersion:\t23A344\n\n/Applications/Install macOS Sequoia.app:\nProductName:\tmacOS\nProductVersion:\t15.0\nBuildVersion:\t24A335\n```\n\nIf you specify program parameters, the script prints out product name, product version and build version for each Install OS X .app folder that you have specified.\n\n```bash\n% ./osxapp_vers '/Applications/Install OS X Mavericks.app'\n\n/Applications/Install OS X Mavericks.app:\nProductName:    Mac OS X\nProductVersion: 10.9.4\nBuildVersion:   13E28\n```\n\nIf you have created a bootable macOS install media with `createinstallmedia` (that command line tool is provided by Apple as part of the OS X installer starting with Mavericks), you could also find out the version of macOS version that is on the install media by specifying the path to the .app folder.\n\n```bash\n% ./osxapp_vers '/Volumes/Install OS X Mavericks/Install OS X Mavericks.app/'\n\n/Volumes/Install OS X Mavericks/Install OS X Mavericks.app/:\nProductName:    Mac OS X\nProductVersion: 10.9.2\nBuildVersion:   13C64\n```\n\n\nThe license\n-----------\nThe license that the project is offered under is the [Apache 2.0 license](http://choosealicense.com/licenses/apache-2.0/).\n\n\nReferences\n----------\n* https://loefflmann.blogspot.de/2015/03/finding-os-x-version-and-build-in-install-os-x-app.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonelo%2Fosxapp_vers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonelo%2Fosxapp_vers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonelo%2Fosxapp_vers/lists"}