How to tell where a given file came from?

Joined
Aug 11, 2012
Messages
85
Reaction score
1
Points
8
Location
San Diego, CA
How do I tell how a given file appeared on my system? I have two Lion systems, each reporting a different version of git I suppose it's possible that one system used MacPorts or something similar and that wound up overwriting the existing file, but how do I KNOW, like 'rpm -qf /path/to/file' on Red Hat?
 
C

chas_m

Guest
Surely the creation and modification dates can tell you which one is the older of the two, but as for where it came from I doubt that information is available.
 
OP
jnojr
Joined
Aug 11, 2012
Messages
85
Reaction score
1
Points
8
Location
San Diego, CA
For the archives:

Code:
flamingo:~ jnojr$ pkgutil --file-info /usr/bin/git
volume: /
path: /usr/bin/git

pkgid: com.apple.pkg.DeveloperToolsCLI
pkg-version: 4.5.0.0.1.1249367152
install-time: 1354051648
uid: 0
gid: 0
mode: 755
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top