After making sure you've installed Git, we'll be able to download Linux kernel through git, so let's start by saying the Linux version number classification.
On the Linux Kernel official website (https://www.kernel.org/), we often see the following version number classifications, for example:
For example, there are three version numbers, respectively: mainline, stable, longterm.
- Mainline is the mainline version number, which is a version number being developed at the moment, and the main version number is 3.15-RC5.
- stable is a stable version, released by Mainline when the time is ripe, the stable version will also provide bug fixes and security patches on the main line of the corresponding version number, but the kernel community has limited manpower, so the older version number will cease maintenance and be marked as EOL (End of life) is a version number that is no longer supported. It can be seen from the above that the stable version number is: 3.14.4
- longterm is a long-term support version, is still in the long-term support version of the five version number of the kernel, respectively, 3.12.19 3.10.40 3.4.90 3.2.58 2.6.32, long-term support version of the kernel wait for no longer support, will also Mark eol .
At the same time different version number corresponding Git address is not the same, you can point to each version number after the Cgit connection, before the previous point of the index above, you can see the following Git clone address, as below is the address of mainline:
Clone |
Git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git |
Https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git |
Https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git |
At this point, the execution: Git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git can download to the mainline branch of the code, the other version number of the same, no longer explain.
References:
Git different Linux version number description