gpt4 book ai didi

linux - 了解 linux 内核和补丁发布

转载 作者:IT王子 更新时间:2023-10-29 00:56:35 25 4
gpt4 key购买 nike

我想更好地了解 linux 内核/补丁发布的工作原理。

例如,如果我今天(2013 年 12 月 12 日)打开 www.kernel.org,主要下载(黄色按钮)会将我带到最新稳定版“linux-3.12.5.tar.xx”。这很清楚。

但是如果我进入“https://www.kernel.org/pub/linux/kernel/v3.x/”,我可以找到(在许多文件中):

(1) linux-3.12.tar.gz

(2) 补丁-3.12.5.gz

(3) 补丁-3.12.gz

所以第一个问题:是"linux-3.12.5"= (1)linux-3.12 "+"(2)patch-3.12.5?

如果是这样,“patch-3.12”(3) 的用途是什么? "linux-3.12"= linux-3.11 "+"(3)patch-3.12 像上面那样吗?

谢谢!

最佳答案

根据 https://github.com/torvalds/linux/blob/master/README (从第 95 行开始):

Unlike patches for the 3.x kernels, patches for the 3.x.y kernels (also known as the -stable kernels) are not incremental but instead apply directly to the base 3.x kernel. For example, if your base kernel is 3.0 and you want to apply the 3.0.3 patch, you must not first apply the 3.0.1 and 3.0.2 patches. Similarly, if you are running kernel version 3.0.2 and want to jump to 3.0.3, you must first reverse the 3.0.2 patch (that is, patch -R) before applying the 3.0.3 patch. You can read more on this in Documentation/applying-patches.txt

感谢 n.m.用于链接源!

关于linux - 了解 linux 内核和补丁发布,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20538429/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com