finding kernel 'r' number

Damien Fleuriot ml at my.gd
Thu Jun 16 13:37:42 UTC 2011


On 6/16/11 3:17 PM, Bas Smeelen wrote:
> On 06/16/2011 02:32 PM, Brandon Gooch wrote:
>> That would be uname(1):
>>
>> $ uname -v
>> FreeBSD 9.0-CURRENT #0 r223017: Sun Jun 12 13:55:34 CDT 2011
>> root at m6500.local:/usr/obj/usr/src/sys/GENERIC
>>
>> ....where r223017 is the current svn revision number from which my
>> system is compiled (kernel and userland).
> Does this only apply if you checkout with svn ?
> I run current on a machine, update with csup and have get r number with uname
> 
> 

Obviously only works if you checked out with SVN:
# uname -a
FreeBSD mybsd 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #2: Mon Feb 21
12:08:09 CET 2011     root at mybsd:/usr/obj/usr/src/sys/DAM  amd64


More information about the freebsd-questions mailing list