Determine FreeBSD version of binary

Yuri Pankov yuri.pankov at gmail.com
Thu Nov 8 09:59:55 PST 2007


On Thu, Nov 08, 2007 at 06:01:40PM +0100, John Smith wrote:
> Hi,
> 
> 
> 
> I was wondering if it was possible to determine for what version of
> FreeBSD a binary was compiled, purely by examining the binary?
> 
> 
> Any and all help and suggestions are greatly appreciated,
> 
> 
> 
> Thanks,
> 
> 
> john Smith

May be not entirely correct, but close:

ldd binary | grep libc.so

libc.so.4 - 4.x, libc.so.5 - 5.x, libc.so.6 - 6x, libc.so.7 - 7.x (and
8-CURRENT at the moment).


HTH,
Yuri


More information about the freebsd-questions mailing list