HOMEVIDEOSCOURSESSTUDENTSSPONSORSDONATIONSEVENTSTUTORIALSLINKSNEWSCONTACT


TUTORIALS 》 How to upgrade or install a latest current release Linux Kernel version manually in Ubuntu?

Linux Kernel developers release frequent monthly kernel versions. If you use Linux distribution such as Ubuntu, we need upgrade kernel version for fix security bugs after Linux kernel developers recently released the same. So, in this article you will learning about this. How to install latest version Linux Kernel in Ubuntu?

First we should be aware of release Linux kernel version, hence check the same in the main Linux Kernel website: www.kernel.org. Here we can see the recent stable kernel version(s). In this case as you can see in the below screenshot it is Linux Kernel version 4.14.11.
Latest stable Linux Kernel version 4.14.11

We have now two ways to do the same:

  1. download current kernel source code, compile the source and install the kernel (compiled binaries) to your machine
  2. we can directly install .deb files of a kernel which is pre-compiled

In this article I am going to discuss the second method:
You need latest version code of kernel compiled or built with different architecture. This is a mainline of Ubuntu where we can see all versions of Linux kernel compiled/pre-built .deb files: http://kernel.ubuntu.com/~kernel-ppa/mainline/.

So let us take current kernel version of Linux which is 4.14.11. You should use this link for get kernel version 4.14.11 with format: http://kernel.ubuntu.com/~kernel-ppa/mainline/v<linux_kernel_version>.

So for Linux kernel version 4.14.11 it is: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.11
1 Linux Kernel v4.14.11 mainline build


We can now download linux-headers from here:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.11/linux-headers-4.14.11-041411_4.14.11-041411.201801022143_all.deb
2 download kernel ubuntu kernel-ppa mainline linux-headers-4.14.11

and download linux-image from here:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.11/linux-image-4.14.11-041411-generic_4.14.11-041411.201801022143_amd64.deb
3 download kernel ubuntu kernel-ppa mainline linux-image-4.14.11


Now we have two .deb files we can now install the same. First install linux-headers .deb file followed by linux-image .deb file as shown below.

root@raminfp:~# dpkg -i linux-headers-4.14.11-041411_4.14.11-041411.201801022143_all.deb
root@raminfp:~# dpkg -i linux-image-4.14.11-041411-generic_4.14.11-041411.201801022143_amd64.deb


Now we can check if they are successfully installed as shown below:
4 verify linux-image
5 verify linux-headers

NOTE: if you want you can remove old kernel versions with dpkg command.

Now to boot into your newly installed kernel, kindly reboot your system and in grub under the advance option for Ubuntu navigate via arrow keys and choose/select kernel version 4.14.11 and press enter to boot into the same. The system should load successfully newly installed Linux Kernel version 4.14.11. You can verify the same with uname command as shown below:
6 verify booted kernel via uname -r and uname -a


Featured Video:



Suggested Topics:


☆ Tutorials :: Arduino UNO Projects ↗


☆ Tutorials :: Network Software Development ↗


☆ Tutorials :: Research and Projects ↗


☆ Tutorials :: Linux (user-space), Systems Architecture ↗


☆ Tutorials :: Linux Kernel Software Development ↗


☆ Tutorials :: Linux Kernel Internals (PDFs) - by Ramin Farajpour ↗


☆ Tutorials :: Software Development (Programming) Tools ↗


☆ Tutorials :: Embedded Projects ↗

Join The Linux Channel :: Facebook Group ↗

Visit The Linux Channel :: on Youtube ↗


💗 Help shape the future: Sponsor/Donate


Recommended Topics:
Featured Video:
Watch on Youtube - [512//0] x267 Linux Kernel Programming | Memory Allocation and Buffer Management | Performance Tuneup ↗

libpcap Library | Linux User-space Network Stack Development ↗
Sunday' 06-Aug-2023
libpcap is a very popular user-space networking library, with which you can capture and or generate packets. libpcap is the underlying framework for many popular packet capture tools such as tcpdump, Wireshark and so on. In fact libpcap is a part of tcpdump project. But besides just using it as a packet capture tool, you can use libpcap in various applications, such as user-space based networking stack development, etc. In some cases libpcap is yet another alternative to raw-sockets and tun/tap interfaces.

The Linux Channel :: Sponsors ↗
Monday' 30-May-2022
Here is a list of all The Linux Channel sponsors/donors (individual/companies).

Inline Programming | Assembly | Scripts | php, python, shell, etc | Rust in Linux Kernel ↗
Friday' 12-May-2023
Inline programming is a technique where code statements are included directly in the text of a program, instead of being contained in separate files or modules. Inline programming can be useful for small or simple tasks, as it can eliminate the need for a separate script or function. One common example of inline programming is using JavaScripts, Php, etc in HTML documents to create dynamic content. Similarly in Linux Kernel we can find lot of instances where we can find inline programming such as inline assembly and now Rust within the Kernel source.

Linux Kernel /sysfs Interface ↗
Saturday' 14-May-2022
/sysfs is one of the most popular kernel to user-space interface which you can leverage to add an interface to your Kernel code such as Kernel modules, Kernel Device Drivers, etc. Although personally I prefer /proc interface than other alternatives such as /sysfs, ioctl() and so on for my personal Kernel modules/stack. So here is my detailed multi-episode Youtube video series on /sysfs Interface.

Rockchip ROC-RK3566-PC from Firefly | OpenWRT ↗
Thursday' 19-Oct-2023
Here is my multi-episode video series on evaluation of Rockchip ROC-RK3566-PC from Firefly with stock OpenWRT firmware.

What is purpose of Kernel Development - Example SMOAD Networks SDWAN Orchestrator Firewall Kernel Engine ↗
Monday' 18-Jul-2022
Often aspiring students may have this question, that what is the purpose of Linux Kernel Development. Since Linux Kernel is very mature and it has almost everything one would need. Usually, we need custom kernel development in the case of any new driver development for new upcoming hardware. And this happens on and on. But at times we may also come across few features/modules/components which are already provided by the Linux Kernel which are not adequate or atleast not the way we exactly intended to use. So, this is the real-world example, sometimes no matter what Linux Kernel provides as a part of stock Kernel/OS features, sometimes we have to write our own custom kernel stack or module(s) which can specifically cater our exact needs.

Linux Kernel Driver Device Trees ↗
Tuesday' 17-Jan-2023
The Linux kernel is the backbone of the Linux operating system. A device tree is a hierarchical tree structure that describes the various devices that are present in a system, including their properties and relationships to one another. The device tree is used by the Linux kernel to identify and initialize the different devices on a system, and to provide a consistent interface for interacting with them.

Linux Kernel vs User-space - Library APIs - Linux Kernel Programming ↗
Friday' 27-Oct-2023
One of the important aspects a beginner who is into Linux Kernel space systems software development has to understand is that unlike user-space C/C++ programming, where you can freely include any library APIs via respective #include files (which are dynamically linked during run-time via those /lib .so files), in the case of Kernel space programming, these library APIs are written within the Kernel source itself. These are the fundamental APIs which we commonly use, such as memcpy(), memcmp(), strlen(), strcpy(), strcpy() and so on. So here is my detailed Youtube video episode on the same with live demo, walk-through and examples.

Porting Sample libpcap C code to Raw Sockets | User-space Network Stack Framework ↗
Monday' 04-Sep-2023
Here is my multi-episode video series where I demonstrate how you can port the my libpcap sample code, discussed in the earlier episode to raw-socket. This code should further help you to design and architect your own user-space Network stack on top of this fundamental framework.

Roadmap - How to become Systems Software Developer ↗
Friday' 13-May-2022
When you are at the beginning of your career or a student, and aspire to become a software developer, one of the avenues to choose is to become a hard-core Systems Software Developer. However it is easier said than done, since there are many aspects to it as you explore further. As a part of systems developer, you can get into core kernel space developer, kernel device drivers developer, embedded developer and get into things like board bring-up, porting, etc, or can become a user-space systems programmer, and so on. So here is my detailed multi-episode Youtube video series on Roadmap - How to become Systems Software Developer.


Trending Video:
Watch on Youtube - [205//0] OSIDays - 12th Open Source India 2015 Bengaluru - Episode2 - SUSE Stall ↗

OSIDays Event - 12th Open Source India 2015 Bengaluru, India ↗
Saturday' 13-Mar-2021



Recommended Video:
Watch on Youtube - [69//0] x272 Linux Kernel Programming | API Hierarchy | External Internal Wrapper Helper APIs #kernel ↗