Script to download the latest linux kernel

Here is a script that will download the latest kernel source THe script works on the current html page of and might break if anything is changed in the page of


save the script as

Run the script by giving it execute permission. Please note that the from which ever folder the script is executed the user running the script needs to have the permission to create and delete files and folders as the script places the downloaded source in the same folder and also creates a temporary file and deletes it.

Thus we can see from the ouput that the latest kernel 3.10.4 has been downloaded. In case the download gets interrupted then the script will retry the download 3 times before quitting with the message of "Download Failed".

Follow by Email