Recompiling the Kernel

Every once in a while, it is worthwhile to see whether a new kernel for Linux has been released. Usually new kernels provide fixes for problems that people have experienced, or provide performance improvements (usually both). The new kernels can also contain more device drivers. This section discusses how to obtain, compile, and install a new kernel on your Linux system.

The official repository for Linux kernels is the FTP site ftp://ftp.kernel.org/pub/linux/kernel/. The Linux installation program might have placed the source code to your current kernel in the /usr/src/linux directory on your hard disk. This might be a symbolic link to the actual source directory.

The disclaimer

The process of compiling and installing kernels ...

Get Practical Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.