Ubuntu Kernel and Upgrade

The kernel is the heart of the system which converts the human-readable language to machine-understandable language 

Steps:

1) Identify the current version of kernel

2) Update the repository

3) Install kernel  


Identify the current version of kernel:

uname is used to check the kernel of a machine

#uname -a

Linux hostname 4.4.0-186-generic #216-Ubuntu SMP Wed Jul 1 05:34:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

# uname -sr

Linux 4.4.0-186-generic


Update the repository: 

apt-get update

apt-get remove


Install Kernel:

apt-get install --install-recommends linux-generic-{version} linux-headers-{version} linux-modules-{version}

reboot the server

#reboot -f 

verify the current kernel using #uname -sr 

Once verified we can remove the old kernel version

to list all the old kernels use 

dpkg -l|grep linux-image*

apt-get remove --purge linux-image-{older-kernel-version}

Note: It is always recommended to have at least one alternate kernel to fall back if something goes wrong with the system. 

Comments

Popular posts from this blog

Cloudbees FlowServer - Debug

PIP Errors and Fix

Terraform Basics