uname -r: release level

Jim Ohlstein jim at ohlste.in
Wed Jan 1 15:57:42 UTC 2014

On 1/1/14, 2:25 AM, Chris Stankevitz wrote:
> Hi,
> I just setup my freebsd machine and performed a "freebsd-update fetch
> install" which leads me to believe I am now running 9.2-RELEASE-p2.
> Of course I wanted to see for myself using "uname -r" which reports my
> "release level".

Looking at http://www.freebsd.org/security/ it seems FreeBSD-9.2 was 
released on 9/30/2013.

According to http://www.freebsd.org/security/advisories.html there was 
only one security advisory since then, on 11/19/2013 - 
That only affected users of the 10 branch.

The p1 and p2 patch levels were applied to the 9.2 RC's only, so far as 
I can see at 
and http://www.freebsd.org/security/advisories/FreeBSD-SA-13:13.nullfs.asc.

> "uname -r" is reporting 9.2-RELEASE which is not quite what I was
> expecting (I was expecting a p2 suffix).  That doesn't interest me too
> much, but this does:
> By what mechanism does "uname -r" determine my "release level"?

sysctl kern.osrelease

  # ktrace -ty uname -r
  # kdump
75158 uname    SCTL  "kern.osrelease"

# ktrace -ty uname -a
# kdump
  75215 uname    SCTL  "kern.ostype"
  75215 uname    SCTL  "kern.hostname"
  75215 uname    SCTL  "kern.osrelease"
  75215 uname    SCTL  "kern.version"
  75215 uname    SCTL  "hw.machine"

> Thank you,
> Chris
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

Jim Ohlstein

More information about the freebsd-questions mailing list