Skip to content

How To Compile Linux Kernel

So, you want to compile linux kernel? Let’s do it.

First let us clone the repository. It’s just over 2GB currently, so it might take a while. We’re also doing a shallow clone

Terminal window
git config --global http.postBuffer 157286400
git clone https://github.com/torvalds/linux.git --shallow-since 2024-
11-17
Terminal window
git tag -l
git checkout v6.12