From the course: Advanced Linux: The Linux Kernel

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Get the kernel source

Get the kernel source - CentOS Tutorial

From the course: Advanced Linux: The Linux Kernel

Start my 1-month free trial

Get the kernel source

Let's talk about Linux Kernel Source Code including obtaining the source code for your Linux distribution. Different distros have their source code available in different ways and in different formats. Some distros are RPM-based like CentOS, and you could use the RPM tool yumdownloader--source and the name kernel to fetch the kernel source RPM. Ubuntu, a Debian-based distro, may make the source code available as a Debian package, or these days you probably want to use git clone. And you want to know the name of your release, the code name, like eoan for Ubuntu 19. So you could do a git clone and you're using the site kernel.ubuntu.com/ubuntu/ubuntu- that code name. That will fetch from the git repository, that version of the kernel source. If you're using an RPM-based distro and you got a RPM of the kernel source, then you can install that with rpm on its i command. That's not going to require privileges because…

Contents