What is the code to update the Kernel from the root command line?

Using YUM is the easiest way to update your Kernel to the latest version within its major release. For example, CentOS 7 can only be upgraded to the highest 7 version. To upgrade from CentOS 7 to AlmaLinux is a much more difficult and risky process.

Simply log into your server with root via SSH and run this code: 

yum -y update kernel



  • yum, kernel, update
  • 49 Users Found This Useful
Was this answer helpful?

Related Articles

How to flush your DNS cache

Your home computer creates a cache for all DNS settings. It does this to save time each time you...

What is the root login for my new VPS server?

The root login is the same password our system sent you in your welcome email. You just change...

What is the path to PERL?

The path to PERL in PERL script is:#!/usr/local/bin/perl

Do you troubleshoot scripts and apps?

Hello,Sorry, but troubleshooting sripts and apps needs to be done by the scipt maker or a...

How to use PHP-CLI

You would call '/usr/local/bin/php' if you need the php-cli binary, and '/usr/bin/php' if you...