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 - CentOS Tutorial
From the course: Advanced Linux: The Linux Kernel
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Get the kernel source8m 23s
-
(Locked)
Explore the kernel makefile4m 59s
-
(Locked)
Examine and build kernel documentation6m 2s
-
(Locked)
Search the kernel source7m 58s
-
(Locked)
Examine kernel driver source4m 2s
-
(Locked)
Additional selected subdirectories8m 49s
-
(Locked)
Challenge: Linux kernel source code26s
-
(Locked)
Challenge: Solution4m 5s
-
(Locked)
-
-