From owner-freebsd-questions@FreeBSD.ORG Sat Apr 19 22:56:04 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 92179840 for ; Sat, 19 Apr 2014 22:56:04 +0000 (UTC) Received: from elasmtp-banded.atl.sa.earthlink.net (elasmtp-banded.atl.sa.earthlink.net [209.86.89.70]) by mx1.freebsd.org (Postfix) with ESMTP id 6279E1A9E for ; Sat, 19 Apr 2014 22:56:03 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=YDrQhPX7ngfjQ5tp23zIArafU6KpnxIa4TE6Rqc8syv6MSY94cSmJvo76bCulQau; h=Message-ID:Date:From:Reply-To:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:X-ELNK-Trace:X-Originating-IP; Received: from [209.86.224.25] (helo=mswamui-backed.atl.sa.earthlink.net) by elasmtp-banded.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1Wbe5T-00036p-PE for freebsd-questions@freebsd.org; Sat, 19 Apr 2014 18:50:19 -0400 Received: from 108.50.137.40 by webmail.earthlink.net with HTTP; Sat, 19 Apr 2014 18:49:54 -0400 Message-ID: <9589367.1397947794737.JavaMail.root@mswamui-backed.atl.sa.earthlink.net> Date: Sat, 19 Apr 2014 18:49:54 -0400 (GMT-04:00) From: John To: FreeBSD questions Subject: Re: where does uname get version number? Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: EarthLink Zoo Mail 1.0 X-ELNK-Trace: 2552ff5019365d7e94f5150ab1c16ac0b4de374c5ae8ff79b2c79415cdd6b9ce16f2e9a88516183d350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 209.86.224.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: John List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2014 22:56:04 -0000 So the question is back to the beginning: I installed 9.1-RELEASE, then binary upgraded to 9.2-RELEASE using freebsd-update. Now all files I checked are correctly in 9.2-RELEASE-p4. For example: 1. the kernel contains the new version: # strings /boot/kernel/kernel | grep RELEASE|grep 9 @(#)FreeBSD 9.2-RELEASE-p4 #0: Tue Apr 8 18:08:22 UTC 2014 FreeBSD 9.2-RELEASE-p4 #0: Tue Apr 8 18:08:22 UTC 2014 9.2-RELEASE-p4 2. /etc/hosts contains 9.2: # $FreeBSD: release/9.2.0/etc/hosts 109997 2003-01-28 21:29:23Z dbaker $ We have verified that: 1. I never compiled kernel, and do not have /usr/src and /usr/obj folders now. 2. the default /etc/profile is unchanged, in particular I never defined UNAME_* vars . 3. I also tried "unsetenv UNAME_r" However, uname somehow shows the wrong version 9.1: # uname -a FreeBSD localhost.localdomain 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 So where does uname get the version number from? Which file(s) might not have been upgraded? Thank you!