Search code examples
javamacosinstalled-applications

Listing all programs installed on Mac using Java


How can I list all the installed programs on Mac OS, date of installation and version using Java?

For example, on Windows I use wmic get product name, version, InstallDate.


Solution

  • /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump
    

    or

    ls -hal /Applications/
    grep -i CFBundleShortVersionString -A 1 /Applications/Mail.app/Contents/Info.plist