DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th August 2009
Stellar Stellar is offline
Port Guard
 
Join Date: Aug 2009
Posts: 26
Default kernel version 0??

my kernel version displayed as 0?
after i update the kernel into latest stable...
i use this uname -a
OpenBSD test 4.5 GENERIC#0 i386
is this approviate command to knows the kernel version?
Reply With Quote
  #2   (View Single Post)  
Old 28th August 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

The #0 represents how many times that kernel has been compiled.

If you manually compiled the kernel, the first time installed it would be #0. If you recompiled it and reinstalled, it would then show #1. Recompile and re-install, and it will show #2. And so on.

The number in front of the kernel name (4.5) is the OS version.

In BSD land, the OS version and the kernel version are always the same, as they are developed as a single, integrated unit (you don't "upgrade the kernel" without also upgrading the entire OS).
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #3   (View Single Post)  
Old 28th August 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

When you config(8) a kernel, it is assigned a version number, which will start with zero if this is the first time, or if you have delete the /usr/src/sys/arch/<ARCH>/compile/<KERNEL> directory structure. After that, the version number will increment each time.

There are several ways to see your kernel. For more complete information than uname(1), use either
$ sysctl kern.version
or
$ dmesg | head
Reply With Quote
  #4   (View Single Post)  
Old 30th August 2009
Stellar Stellar is offline
Port Guard
 
Join Date: Aug 2009
Posts: 26
Default

forgot to say thank you,just notice that,so how would i kept track with the latest kernel for let say as i run 4.5?isn't it hard since there is no exact version?how many times permonth you always update and build the kernel?i mean applying patch and etc,these small patch changes not not consider on big kernel changes?
Reply With Quote
  #5   (View Single Post)  
Old 30th August 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by Stellar View Post
...how would i kept track with the latest kernel for let say as i run 4.5?
Read & study Section 5 of the FAQ:

http://openbsd.org/faq/faq5.html
Quote:
isn't it hard since there is no exact version?
Huh? The information is quite exact.
Quote:
how many times permonth you always update and build the kernel?
  • If you are running 4.5-release, there is no reason to rebuild the kernel
    unless patches require it. Information on patching can be found at the following:

    http://openbsd.org/errata45.html

    More information on patching can be found in Section 10.15 of the FAQ:

    http://openbsd.org/faq/faq10.html#Patches
  • If you are running -stable, keep track of published errata & rebuild as necessary. Building the kernel, userland, & Xenocara is all covered in Section 5 of the FAQ.
  • As for 4.5-current, rebuild when features or changes warrant it. Again study Section 5. Also, be very aware of the information found in the Following -current document.
All of your questions of late are valid, but they are covered in detail in the FAQ. Seriously study this document. It is maintained by developers of the Project for a reason -- to be correct, current, & answer questions which most users will ask at one time or another.
Reply With Quote
  #6   (View Single Post)  
Old 30th August 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

As an addendum (& repeating information I've already covered in a different thread...), 4.5-current no longer exists given that the OPENBSD_4_6_BASE CVS tag was created nearly a month ago. The head of CVS is now 4.6-current.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Courier IMAP Different MD5 version jrs665 OpenBSD Packages and Ports 3 30th October 2008 12:34 PM
My version of pkg_add :) DNAeon FreeBSD Ports and Packages 26 15th October 2008 06:58 AM
version of OpenBSD milo974 OpenBSD General 1 6th August 2008 08:24 AM
Latest ZFS version available for -CURRENT tanked FreeBSD General 0 30th July 2008 10:06 AM
How I can have two version of zsh mfaridi FreeBSD Ports and Packages 7 15th May 2008 05:56 PM


All times are GMT. The time now is 05:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick