From owner-freebsd-questions@FreeBSD.ORG Fri Mar 6 20:54:08 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE3B310656BD for ; Fri, 6 Mar 2009 20:54:08 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 3DB308FC0C for ; Fri, 6 Mar 2009 20:54:08 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:65102 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Lfh3U-0007BH-6r for freebsd-questions@freebsd.org; Fri, 06 Mar 2009 21:54:04 +0100 Received: (qmail 22287 invoked from network); 6 Mar 2009 21:54:02 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 6 Mar 2009 21:54:02 +0100 Received: (qmail 59147 invoked by uid 1001); 6 Mar 2009 21:54:02 +0100 Date: Fri, 6 Mar 2009 21:54:02 +0100 From: Erik Trulsson To: Ian Bonnycastle Message-ID: <20090306205402.GA59135@owl.midgard.homeip.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1Lfh3U-0007BH-6r. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Lfh3U-0007BH-6r 6a0c1fe004bcf2fb755d315791322ef7 Cc: freebsd-questions@freebsd.org Subject: Re: How do I determine the FreeBSD "world" revision/version? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2009 20:54:09 -0000 On Fri, Mar 06, 2009 at 03:12:26PM -0500, Ian Bonnycastle wrote: > Good afternoon everyone, > > I'm asking this question here because I honestly don't know where to turn to > otherwise. I've looked through forums, Google search results and the FreeBSD > handbook without a specific answer. I understand the concept that FreeBSD is > actually an OS, which is a combination of the kernel and the "world". Ports > are the extraneous userland which is not mandatory for a working system. > Now, in order to explain my question, I have to use an analogy: In Linux, > you can have a kernel version, a distribution version and software versions. > If you're running kernel 2.6.20, CentOS (as an example) 5.1, and bash > (another example) 3.2, you know that upgrading can occur at any of those > levels. > > My actual question is this: Is there a way to tell what version of the > FreeBSD world you're running outside of "uname -a", which tells you what > *kernel* version you're running? I do know that any of these can be patched > to different levels outside of what you've installed from scratch (or > upgraded to at any particular level), but with Linux, when you run the > respective commands, you get the *base* revision you started from. In > FreeBSD, "uname -a" gives you the kernel "base", and "pkg_info" will give > you the software revision base for a particular port/package. If I have a > particular FreeBSD system, and know its a modified kernel, how can I tell > what base was originally on it? I've often updated the kernel on a > 7.1-RELEASE to 7-STABLE to get more recent updates to the kernel, but the > base as been left at 7.1-RELEASE. Now, it could have been 7.0-RELEASE or > 7.x-RELEASE and after upgrading the kernel, is this informaiton stored > anywhere? No, there is no such information. The version stored in the kernel applies to both kernel and userland. If you do 'mix-and-match' where different parts of your system come from different versions of FreeBSD you will have to keep track of this yourself. Having kernel and userland from different FreeBSD versions is not supported and can somtimes cause problems. -- Erik Trulsson ertr1013@student.uu.se