How to Compile and Install Linux Kernel v4.9.11 Source On a Debian / Ubuntu Linux
Here are the steps to compile and install the Linux kernel version 4.9.11 on a Debian or Ubuntu system:
- Download the Linux kernel source code:
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.11.tar.xz - Extract the source code:
tar -xvf linux-4.9.11.tar.xz - Change to the extracted source code directory:
cd linux-4.9.11 - Copy the configuration from your current running kernel:
cp /boot/config-`uname -r` .config - Configure the kernel:
make menuconfig - Compile the kernel:
make -j `nproc` - Install the kernel:
sudo make modules_install install - Update the boot loader:
sudo update-initramfs -c -k 4.9.11 sudo update-grub - Reboot your system and select the newly installed kernel from the boot loader menu.
sudo apt-get install build-essential
