[MacTUG] Use command line to get version number of an app

Donald Duff-McCracken dsmccrac at uwaterloo.ca
Fri Dec 16 16:21:25 EST 2016


I know ARD can get this info for you but:

1)       Sometimes it can take forever to get this data, or craps out

2)       Sometimes you want it on computers that do not use ARD

This sort of thing works well
mdls /Applications/Application_name.app -name kMDItemVersion | awk -F'"' '{print $2}'

mdls lists the metadata for a file which can be tons of info

from https://www.jamf.com/jamf-nation/discussions/18082/find-application-version-through-terminal-deploying-office-2016-updates



------------------------------------
Donald Duff-McCracken
Technical Services Manager
Mapping, Analysis & Design
Faculty of Environment
University of Waterloo
(519) 888-4567 x32151
https://uwaterloo.ca/environment-computing/about/people
------------------------------------
This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and If you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited.  If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20161216/49c6d1ab/attachment.html>


More information about the MacTUG mailing list