{"id":24033,"date":"2026-10-30T09:27:54","date_gmt":"2026-10-30T09:27:54","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=24033"},"modified":"2026-11-02T01:18:06","modified_gmt":"2026-11-02T01:18:06","slug":"how-to-update-the-kernel-on-your-hostinger-vps","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-update-the-kernel-on-your-hostinger-vps\/","title":{"rendered":"How to update the kernel on your Hostinger VPS"},"content":{"rendered":"<p>To update the kernel on a Hostinger VPS, create a recovery point, install the kernel update with your operating system&rsquo;s package manager, restart the server, and check the running kernel version. Kernel updates apply security patches and bug fixes that keep your VPS stable. These steps apply to Hostinger KVM VPS plans running Ubuntu, Debian, AlmaLinux, or Rocky Linux with their standard distribution kernels.<\/p><h3>Before you start<\/h3><ul>\n<li><strong>Create a recovery point:<\/strong> <a data-click-id=\"hgr-post-content-link-create-a-vps-snapshot-or-check-your-available-backups\" href=\"https:\/\/www.hostinger.com\/support\/1583232-how-to-back-up-or-restore-a-vps-at-hostinger\/\">Create a VPS snapshot or check your available backups<\/a> before making changes. Wait for the snapshot to finish before continuing.<\/li>\n<li><strong>Plan for downtime:<\/strong> Restarting the VPS temporarily interrupts websites, databases, game servers, and other applications running on it.<\/li>\n<li><strong>Check compatibility:<\/strong> If you use a control panel or software that requires specific kernel versions or modules, check its requirements before updating.<\/li>\n<li><strong>Use a supported operating system:<\/strong> If your operating system has reached the end of its support period, standard repositories may no longer provide security updates.<\/li>\n<\/ul><p><strong>Important:<\/strong> These steps update packages within your current operating system release. They do not upgrade your VPS to a new major operating system version.<\/p><h2 id=\"h-connect-to-your-vps\">Connect to your VPS<\/h2><p><a data-click-id=\"hgr-post-content-link-connect-to-your-vps-via-ssh\" href=\"https:\/\/www.hostinger.com\/support\/5723772-how-to-connect-to-your-vps-via-ssh-at-hostinger\/\">Connect to your VPS via SSH<\/a>, or open <strong>VPS &rarr; Manage &rarr; <a data-click-id=\"hgr-post-content-link-web-console\" href=\"https:\/\/www.hostinger.com\/support\/how-to-use-the-web-console-in-hostinger\/\">Web Console<\/a><\/strong> in your Hostinger dashboard.<\/p><p>The commands below assume you are logged in as <strong>root<\/strong>. If you use an account with administrator privileges instead, add <code>sudo<\/code> before commands that change the system.<\/p><h2 id=\"h-check-your-operating-system-and-running-kernel\">Check your operating system and running kernel<\/h2><p>Identify your operating system:<\/p><pre><code>cat \/etc\/os-release<\/code><\/pre><p>Check the kernel currently running on your VPS:<\/p><pre><code>uname -r<\/code><\/pre><p>Save the output so you can compare it after restarting.<\/p><h2 id=\"h-install-available-updates\">Install available updates<\/h2><p>Follow the instructions for your operating system below.<\/p><h3>Ubuntu and Debian<\/h3><p>Refresh the package list:<\/p><pre><code>apt update<\/code><\/pre><p>If the command finishes successfully, install available package updates:<\/p><pre><code>apt upgrade<\/code><\/pre><p>Review the proposed changes and enter <code>Y<\/code> when prompted. This updates installed packages, including the kernel when an update is available and the appropriate kernel metapackage is installed.<\/p><p><strong>Note:<\/strong> This command updates other system packages too. If kernel packages are kept back, investigate the reason before proceeding. Avoid forcing updates or removing packages without reviewing their impact.<\/p><h3>AlmaLinux and Rocky Linux<\/h3><p>Refresh repository metadata and install available updates for the standard kernel:<\/p><pre><code>dnf --refresh upgrade kernel<\/code><\/pre><p>Review the transaction and enter <code>y<\/code> when prompted. The package manager installs the updated kernel and its required dependencies.<\/p><p>To update all system packages as well, use the following command instead:<\/p><pre><code>dnf --refresh upgrade<\/code><\/pre><p><strong>Important:<\/strong> Let the update finish. If you see errors, resolve them before restarting. Do not manually delete files from <code>\/boot<\/code> or remove the currently running kernel to free space.<\/p><h2 id=\"h-restart-your-vps\">Restart your VPS<\/h2><p>Once the update completes successfully and you are ready for the interruption, restart the server:<\/p><pre><code>reboot<\/code><\/pre><p>Your connection will close during the restart. Wait for the VPS to start, then reconnect. You can also restart it using the <strong>Reboot<\/strong> option in your VPS dashboard.<\/p><h2 id=\"h-verify-the-update\">Verify the update<\/h2><p>Check the running kernel again:<\/p><pre><code>uname -r<\/code><\/pre><p>If a newer kernel was installed and selected for boot, the output should show its version. If no kernel update was available, the version may remain unchanged.<\/p><p>Check that your websites, control panel, databases, and other applications work as expected.<\/p><h2 id=\"h-troubleshooting\">Troubleshooting<\/h2><ul>\n<li><strong>No kernel update is available:<\/strong> Your server may already have the latest kernel offered by its configured repositories. Distribution kernel versions can differ from the latest version published on kernel.org.<\/li>\n<li><strong>The old kernel still runs after restarting:<\/strong> Confirm that a newer kernel was installed. Kernel package holds, exclusions, a missing kernel metapackage, or bootloader settings can prevent the expected update.<\/li>\n<li><strong>You cannot reconnect:<\/strong> Check the VPS status and try the Web Console. See <a data-click-id=\"hgr-post-content-link-how-to-troubleshoot-ssh-connection-issues-on-vps\" href=\"https:\/\/www.hostinger.com\/support\/9969102-how-to-troubleshoot-ssh-connection-issues-on-vps\/\">How to troubleshoot SSH connection issues on VPS<\/a> for other connection fixes.<\/li>\n<li><strong>The VPS cannot start:<\/strong> Use <a data-click-id=\"hgr-post-content-link-emergency-mode\" href=\"https:\/\/www.hostinger.com\/support\/5726577-how-to-use-emergency-mode-on-your-vps-at-hostinger\/\">Emergency mode<\/a> to access server files for recovery, or restore your snapshot or backup. Restoring overwrites the current VPS data with the selected recovery point.<\/li>\n<\/ul><p>Once your VPS restarts on the updated kernel, it runs with the latest security patches and bug fixes from your distribution. Check for kernel updates regularly, and create a fresh snapshot before each update so you can roll back quickly if something goes wrong.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install kernel security patches on Ubuntu, Debian, AlmaLinux, or Rocky Linux and verify the update.<\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[199],"tags":[],"class_list":["post-24033","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/24033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=24033"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/24033\/revisions"}],"predecessor-version":[{"id":24046,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/24033\/revisions\/24046"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=24033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=24033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=24033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}