New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

How to tell where a given file came from?


Post Reply New Thread Subscribe

 
Thread Tools
jnojr

 
jnojr's Avatar
 
Member Since: Aug 11, 2012
Location: San Diego, CA
Posts: 85
jnojr will become famous soon enough

jnojr is offline
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?
QUOTE Thanks
chas_m

 
chas_m's Avatar
 
Member Since: Jan 22, 2010
Location: Victoria, BC
Posts: 17,078
chas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond repute
Mac Specs: 2012 MBP, Black speakers, Black Benq second monitor, black(ish) iPhone 5s, Black 2012 iPad, etc.

chas_m is offline
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.
QUOTE Thanks
jnojr

 
jnojr's Avatar
 
Member Since: Aug 11, 2012
Location: San Diego, CA
Posts: 85
jnojr will become famous soon enough

jnojr is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Snow Leopard onto USB flash drive boot problem | Safari 6.0.5 does not always open pdf's »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
How to compile (without building) a .c/.cpp file with Xcode? ZhimingWang OS X - Development and Darwin 7 08-27-2013 10:46 AM
bad mess with file extension parappo OS X - Operating System 0 04-29-2010 05:11 AM
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 07:13 PM
Show Item Info inflexion OS X - Operating System 15 10-24-2005 10:34 PM

All times are GMT -4. The time now is 05:20 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?