Linux Kernel - How to get a specific version (up to SUBLEVEL)

I want to configure linux kernel 3.18.1 on my computer. How to get the same?

What I already tried:

  • Trial download from kernel.org. But the latest version is 3.18.3, and I can not find 3.18.1 there.
  • Cloning the linux kernel from git. However, only version 3.18 is noted. The next tagged version is 3.18-rc1, etc. So where can I find 3.18.1?
+6
source share
1 answer

kernel.org has a public (read-only) git repository that you can clone. It also has tags for each kernel version, so you can check the specific version:

# Clone the kernel to your local machine $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git $ cd linux-stable # Find the tag for the version you want $ git tag -l | grep 3.18.1 v3.18.1 # Create a new branch with that tag $ git checkout -b my3.18.1 v3.18.1 

Now the linux-stable directory will have the desired kernel version.

(I know that you said v3.18.1 does not exist as a tag, but it does)

Edit : the asker says that he used github relay from Torvalds, so he could not find the tag for 3.18.1. This is expected because github relay in Torvalds contains only tags for release candidates.

The responder requests a small revision (.1 in 3.18.1), so he needs to get this from https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/

+10
source

Source: https://habr.com/ru/post/981514/


All Articles