cht電腦資訊
adm Find login register

[極簡介] linux kernel 的版本號

caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
1subject: [極簡介] linux kernel 的版本號Promote 0 Bookmark 02011-06-01quote  

許多剛接觸 linux 的新人往往聽到這麼一種說法:單數是開發版,雙數是穩定版。於是不少人就誤以為 2.6.39 是開發版。

實際上,所謂「單數是開發版」指的是 2.1 / 2.3 / 2.5 等等,所有的 2.0 / 2.2 / 2.4 / 2.6 全都是穩定版。

所以說 2.6.39 是穩定版,因為 6 是雙數。2.6.37.1 / 2.6.37.3 等等也全都是穩定版。

不過 Linus 最近把 2.6.39 的後續版本改名為 3.0(注意是 3.0 不是 3.0.0),也就是說將不會出現 2.6.40,那 3.0 這個版本到底是開發版還是穩定版呢?

答案:仍然是穩定版。

雖然目前為了相容性起見,3.0 暫時被 tag 成 3.0.0 rc1,但正式推出時應該會是版本 3.0, 而隨後的 stable release 則直接把版號加在後面,變成 3.0.1 / 3.0.2 等等,它們仍然都是穩定版。(實質上 3.0 == 2.6.40, 3.0.1 == 2.6.40.1, 3.0.2 == 2.6.40.2)。

那麼,3.0 的下一版本會是什麼呢?目前看來可能會是 3.1 或 3.2,我猜大概會是名為 3.1 的穩定版,也就是不管啥單數雙數了(純屬個人猜測)。

以上是 linux 的版本號。

另外某些軟體也會採用「單數是開發版,雙數是穩定版」的作法,但非常多的軟體完全不管這一套,所以不要看到某某軟體出了 5.3 就說那是開發版,要看那個軟體的實際作法是如何。

Update:

我應該是有讀到這篇:

https://lkml.org/lkml/2011/5/23/485(Linus 宣佈大概會用 3.1, 3.2, etc)

Linus
 

From Linus Torvalds <>
Date Mon, 23 May 2011 16:33:12 -0700
Subject Re: (Short?) merge window reminder
Another advantage of switching numbering models (ie 3.0 instead of
2.8.x) would be that it would also make the "odd numbers are also
numbers" transition much more natural.

Because of our historical even/odd model, I wouldn't do a 2.7.x -
there's just too much history of 2.1, 2.3, 2.5 being development
trees. But if I do 3.0, then I'd be chucking that whole thing out the
window, and the next release would be 3.1, 3.2, etc..

And then in another few years (probably before getting close to 3.40,
so I'm not going to make a big deal of 3 = "third decade"), I'd just
do 4.0 etc.

Because all our releases are supposed to be stable releases these
days, and if we get rid of one level of numbering, I feel perfectly
fine with getting rid of the even/odd history too.

Linus
edited: 2
elleryq

joined: 2007-09-27
posted: 117
promoted: 5
bookmarked: 0
Taipei, Taiwan
2subject: Promote 0 Bookmark 02011-06-01quote  

印象中好像有看過,Linus個人也表示不會再用單雙數來區分開發版、穩定版了~只是我忘了在哪兒看到的~或許去kerneltrap或mailing list可以撈到?

eliu

joined: 2007-08-09
posted: 11474
promoted: 617
bookmarked: 187
新竹, 台灣
3subject: Promote 0 Bookmark 02011-06-01quote  

gcin 之前也有人建議分成兩個 branch,不想花太多時間,懶得弄。

cht電腦資訊
adm Find login register
views:6475