Sample Header Ad - 728x90

Command to find out the version number of a .pkg file

7 votes
4 answers
12028 views
Does anyone know how to retrieve the version number of a .pkg file which isn't installed yet? I'd like to use something like **pkgutil --pkg-info**, but that only works for installed packages. I've also tried **installer -pkginfo -verbose**, but that doesn't show the version number. Is there a built-in command to do this, or alternatively, could someone suggest a one-liner please? Thanks.
Asked by d3Xt3r (279 rep)
Apr 12, 2015, 08:54 PM
Last activity: May 6, 2024, 04:01 PM