There is something similar to RPM – out of the box – in MacOS Leopard – it is called pkgutil.
To find out all options available:
jfaleiro$ pkgutil --help
And to find out where that mysterious binary came from:
jfaleiro$ pkgutil --file-info `which (your-binary)`
For example, if you want to find out which package brought Maven pre-installed in MacOS you have to type:
jfaleiro$ pkgutil --file-info `which mvn`
What results…
volume: / path: usr/bin/mvn pkgid: com.apple.pkg.BSD pkg-version: 10.5.0.1.1.1191419069 install-time: 1193377425 uid: 0 gid: 0 mode: 120755 pkgid: com.apple.pkg.JavaSE6 pkg-version: 10.5.0.1.1.1192168948 install-time: 1210817763 uid: 0 gid: 0 mode: 120755
If you are looking for closer matches there are additional ports out there – some you can check out are RPM for Darwin (Fedora-like RPM), Fink (Debian’s apt) and MacPorts (ports).
The beauty of *nix…