A
A
Alexey R2020-11-15 16:23:01
linux
Alexey R, 2020-11-15 16:23:01

Where can I get the source code for a specific Linux kernel?

Good day. Please help me. Where can I find a list of all available Linux kernels in the sources. To assemble a specific kernel. I found the .deb package of the 4.18.0-15-generic I'm interested in, but I can't seem to find the source code. I didn't find it on kernel.org. I probably don't look there. Found only ChangeLog. And I need him.
Thank you very much!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
J
jcmvbkbc, 2020-11-15
@jcmvbkbc

I found the .deb package of the 4.18.0-15-generic I'm interested in, but I can't seem to find the source code.

Short answer: apt-get source <имя пакета>.
Long answer: all kernels are different, Torvalds releases are one thing, Kroah-Hartman stable releases are another, and whatever your distribution uses is another. Therefore, you need to start with a clear understanding of what kind of kernel you need (and for what). Since you wrote "found the .deb package of 4.18.0-15-generic that interests me", then apparently you need the kernel of your distribution. Get it using this distribution's methods, i.e. -- apt-get source. The downloaded archives will contain the original kernel code from the stable branch and a collection of patches added by the distribution's maintainers.

R
Ronald McDonald, 2020-11-15
@Zoominger

https://github.com/torvalds/linux
In general, they are usually in the repository.

D
Dr. Bacon, 2020-11-15
@bacon

Did you try or just ran here? https://mirrors.edge.kernel.org/pub/linux/kernel/

A
AVKor, 2020-11-15
@AVKor

https://wiki.debian.org/apt-src

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question