[英]Understanding linux kernel and patches releases
I would like to better understand how linux kernel / patches releases work. 我想更好地了解Linux内核/补丁发布的工作原理。
For example, if I open www.kernel.org today (Dec 12, 2013) the main download (yellow button) takes me to "linux-3.12.5.tar.xx" that is the latest stable. 例如,如果我今天(2013年12月12日)打开www.kernel.org,主要下载(黄色按钮)将我带到最新稳定版“linux-3.12.5.tar.xx”。 This is clear.
这很清楚。
But if I move into " https://www.kernel.org/pub/linux/kernel/v3.x/ ", I can find (among many archives): 但如果我进入“ https://www.kernel.org/pub/linux/kernel/v3.x/ ”,我可以找到(在许多档案中):
(1) linux-3.12.tar.gz (1)linux-3.12.tar.gz
(2) patch-3.12.5.gz (2)patch-3.12.5.gz
(3) patch-3.12.gz (3)patch-3.12.gz
So the first question: is "linux-3.12.5" = (1)linux-3.12 "+" (2)patch-3.12.5? 所以第一个问题:是“linux-3.12.5”=(1)linux-3.12“+”(2)patch-3.12.5?
If so, what is "patch-3.12"(3) for ? 如果是这样,那么“patch-3.12”(3)是什么? is "linux-3.12" = linux-3.11 "+" (3)patch-3.12 like above?
是“linux-3.12”= linux-3.11“+”(3)patch-3.12如上?
Thanks! 谢谢!
According to https://github.com/torvalds/linux/blob/master/README (line 95 onward): 根据https://github.com/torvalds/linux/blob/master/README (第95行):
Unlike patches for the 3.x kernels, patches for the 3.xy kernels (also known as the -stable kernels) are not incremental but instead apply directly to the base 3.x kernel.
与3.x内核的补丁不同,3.xy内核(也称为-stable内核)的补丁不是增量的,而是直接应用于base 3.x内核。 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.
例如,如果您的基本内核是3.0并且您想要应用3.0.3修补程序,则不能首先应用3.0.1和3.0.2修补程序。 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.
同样,如果您运行的是内核版本3.0.2并希望跳转到3.0.3,则必须先应用3.0.2补丁(即补丁-R), 然后再应用3.0.3补丁。 You can read more on this in Documentation/applying-patches.txt
您可以在Documentation / apply-patches.txt中阅读更多相关内容
Thanks to nm for linking source! 感谢nm链接源!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.