Retrieving a kernel source
Most Linux distributions include kernel sources in them. However, these sources may tend to be a bit out of date. Due to this, we may need to get the latest sources when building or customizing the kernel.
Getting ready
Most of the Linux kernel developer community uses the Git tool to manage source code. Even Ubuntu has integrated Git for its own Linux kernel source code, hence enabling kernel developers to interact better with the community.
We can install the git
package using this command:
sudo apt-get install git
How to do it…
The Linux kernel source code can be downloaded from various sources, and we will discuss the methods used to download from these sources:
- We can find the Linux source code in the form of a complete tarball and also as an incremental patch on the official web page of Linux kernel at http://www.kernel.org.
- It is always recommended that you use the latest version unless you have a specific reason to work with an older version.
- Ubuntu&apos...