使用 git 下載linux 源碼

來源:互聯網
上載者:User

標籤:

1)進入源碼官網

https://www.kernel.org/

頁面如下:

2)主線的git 地址,當點mainline 後面的 “browse ”時,如下:

 

點一下,企鵝右邊的 index:kernel/git/torvalds/linux.git,即可找到 主線源碼的 git 地址

具體如下(三者都是相同的代碼,伺服器不同):

  • 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 或 longterm 項的後面 點 “browse” 即可,具體同上

穩定版核心源碼git地址如下:

  • 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)源碼下載後,時時更新

進入源碼目錄執行以下命令,將更新到最新核心

$ git pull

使用 git 下載linux 源碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.