How To Download Linux Kernel

Gcc is most popular compiler for c and c source codes in linux environment.
How to download linux kernel. In this step we will download kernel source code by using wget command like below. The mainline kernel packages for linux 5 7 64 bit only are now available for download at the link below. Downloading and extracting the latest kernel source. This will automatically enable the optional wsl and virtual machine platform components download and install the latest linux kernel set wsl 2 as the default and download ubuntu this can be changed using wsl install d debian as an example to see a list of available linux distributions enter wsl list online. Download kernel 5 7 select generic for common system and lowlatency for a low latency system e g.
Download the latest linux 5 8 kernel go to the official kernel website and select the linux 5 8 to download the kernel archive. Linux refers to the family of unix like computer operating systems using the linux kernel. Current stable version of the linux kernel is 4 17 6. You will also need up to at least 12 gb of free space on disk an internet connection to download the source code and a lot of time about 45 to 90 minutes. Now install downloaded kernel packages on your system using following command.
According to 1 and 2 in order to get a kernel as newer as possible in a most convenient way you should install linux signed generic lts xxx e g linux signed generic lts xenial or unsigned version linux generic lts xxx e g linux generic lts xenial for ubuntu before lts 16 04 even prefer to install the newer linux signed generic hwe 16 04 or even more. Naming the best linux distribution is difficult as they are made for different. There are hundreds of distributions available some of which are designed to accomplish a sole purpose like running servers act as network switches etc. Sudo dpkg i linux headers 4 3 deb linux image 4 3 deb you can also update grub for latest kernel using following command. An operating system based on the linux kernel is called a distribution or distro.
To check your current kernel version open the terminal and type.