After making sure that you have Git installed, we can download the Linux kernel from git, and then we'll start by talking about the Linux version classification.
On the Linux Kernel official website (https://www.kernel.org/), we often see the following version categories:
For example, there are three versions, namely: Mainline, stable, longterm.
- Mainline is the mainline version, a version that is currently being developed, and the current mainline version 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 older versions stop maintenance and are marked as EOL (End of Life) version represents a version that is no longer supported. As you can see from above, the current version of stable is: 3.14.4
- longterm is a long-term support version, is still in the long-term support version of the five version 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 versions of the corresponding GIT address is not the same, you can point to each version behind the Cgit connection, before the previous point of the index above, you can see at the bottom of the Git clone address, such as the following 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 |
Then run: Git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git can be downloaded to the mainline branch of the code, the other version of the same, no longer explain.
Reference: