Use git to download Linux source code

Source: Internet
Author: User

1) Enter the source code website

https://www.kernel.org/

The page is as follows:

2) The GIT address of the main line, when the point mainline behind the "Browse", as follows:

Click on the Penguin to the right of the index:kernel/git/torvalds/linux.git, you can find the main source git address

The following (all three are the same code, the server is different):

  • 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

3) Stable version of the kernel source code, when entering the home page, stable or longterm after the point "browse" can be, specifically ibid.

Stable version of the kernel source git address is as follows:

  • Git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
  • Https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
  • Https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git

4) After downloading the source code, always update

Go to the source directory and execute the following command to update to the latest kernel

$ git pull

Use git to download Linux source code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.