> ## Documentation Index
> Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Update the Kernel

> Update your Linux kernel and system packages

Keeping your kernel up to date ensures you have the latest security patches and performance improvements.

<Info>
  **Prerequisites**

  * A VPS with OnetSolutions
  * SSH access to your server ([How to connect](/tutorials/how-to-connect-to-linux-server))
</Info>

## Update Commands

<Tabs>
  <Tab title="Debian/Ubuntu">
    ```bash theme={null}
    sudo apt update
    sudo apt upgrade -y
    ```
  </Tab>

  <Tab title="CentOS/Rocky/Alma">
    ```bash theme={null}
    sudo yum update -y
    ```

    Or on newer systems:

    ```bash theme={null}
    sudo dnf update -y
    ```
  </Tab>
</Tabs>

## Applying the Update

<Warning>
  Kernel updates require a system reboot to take effect.
</Warning>

After the update completes, restart your server:

```bash theme={null}
sudo reboot
```

<Note>
  Your VPS will be unavailable for a few minutes during the reboot. See [Restart](/vps/restart) for more details.
</Note>

## Verifying the Update

After rebooting, check your kernel version:

```bash theme={null}
uname -r
```

<Tip>
  Schedule regular updates to keep your system secure. Consider setting up automatic security updates for critical patches.
</Tip>
