Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2007 22:38:01 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        John Smith <lbalbalba@gmail.com>
Cc:        Yuri Pankov <yuri.pankov@gmail.com>, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Determine FreeBSD version of binary
Message-ID:  <20071108213801.GA72691@slackbox.xs4all.nl>
In-Reply-To: <6dcf0dbc0711081316h7748e759w101e5df72e1514d7@mail.gmail.com>
References:  <6dcf0dbc0711080901g49043bb1u1a8e38cfacbde15c@mail.gmail.com> <20071108175951.GC18314@darklight.org.ru> <6dcf0dbc0711081316h7748e759w101e5df72e1514d7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 08, 2007 at 10:16:38PM +0100, John Smith wrote:
> On Nov 8, 2007 6:59 PM, Yuri Pankov <yuri.pankov@gmail.com> wrote:
> >
> > May be not entirely correct, but close:
> >
> > ldd binary | grep libc.so
> >
>=20
> Yes, that helps somewhat. At least I now know that it's FreeBSD 4.x.
> And before I again forget something I forgot to mention earlier on: I
> also have a file called 'kernel'. Could that somehow give somewhat
> more detailed information about exactly which 4.x kernel it is, and if
> so, how would I go about doing that ?

The command 'strings kernel | grep "^@(#)FreeBSD"' should do the trick.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--zhXaljGHf11kAtnf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHM4G5EnfvsMMhpyURAqSnAKCGfl7JoBxI0M3CUNbzOKPoFZcy7gCfakjo
9vYLfjxOndegsL1yyIuc7M8=
=wCSw
-----END PGP SIGNATURE-----

--zhXaljGHf11kAtnf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071108213801.GA72691>