Help Docs Server Administration Linux Server Administration Updating Your Linux Kernel

Updating Your Linux Kernel

The kernel is the core of the Linux OS. You may need to update it for software compatibility or to patch security vulnerabilities in older versions.

Just like any other operating system, there are different versions of Linux and there are often updates to whatever distribution you are using. Certain programs will only run on certain versions of Linux (usually newer ones). There are also security vulnerabilities in older kernel versions. So, sometimes you might have to update the kernel version. A kernel is at the core of the operating system and controls how the hardware and software communicate with each other.

If you need to run a program that requires a certain Linux kernel version, read  Checking Your Linux Kernel Version first to make sure you actually have to update.

  1. Using the terminal program of your choice, SSH into your server as the root user. If you haven’t used SSH to log into your server before, read Logging into Your Server via Secure Shell (SSH) first.
  2. In the command line, type:
    yum -y update kernel

    Then press Enter. In this case, yum is the rpm-based package manager for Red Hat and CentOS. The modifier -y gives yes as an answer to any question which would be asked by running the command, update is for updating the package, and kernel is the package you’re updating.

  3. To complete the kernel update, you need to reboot your server. While your server is rebooting, all your websites will be temporarily offline. The easiest way to reboot your server is to log into your Liquid Web account.
  4. After you’ve logged into your account, on the main page, select the [+] next to the server you will be rebooting.
    server overview
  5. Then, click Reboot next to My Hosting Infrastructure. Confirm you want to reboot your server by clicking Reboot Server. Your server will reboot and your kernel update will take effect.
    rebooting your server
Was this article helpful?