How to compile and install the Linux Kernel
This step by step how to covers compiling the Linux kernel version 5.4.7 under Ubuntu 18.04 or Linux Mint 19. The following instructions were successfully tested on Linux Mint 19.3, however, instructions remain the same for any other Linux distribution.
- Get the latest Linux kernel source code
- Extract the tar.xz file
- Install the required compilers and other tools
- Configure the Linux kernel features and modules
- Compile the kernel
- Install the Linux kernel modules
- Install the Linux kernel
- Update Grub config
- Verify the new Linux kernel version after reboot
Congratulations! You have completed various steps to build the Linux kernel from source code and the compiled kernel should be running on your system.