> For the complete documentation index, see [llms.txt](https://docs.neevcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neevcloud.com/neevcloud-products/security/guide-to-patching-instances-of-major-linux-distributions.md). Agents can also search and read this documentation through its [MCP server](https://docs.neevcloud.com/~gitbook/mcp).

# Guide to Patching Instances of Major Linux Distributions

Keeping your Linux systems patched is essential for **security**, **stability**, and **performance**. Below are the steps to update and patch instances of the most common Linux distributions.

**Pre-Update Warning for VM Users**&#x20;

Before running any system updates on your Ubuntu VM, please review the following:

* **Service Disruption Risk**: Updates may restart services or upgrade critical system components.
* **Kernel Updates**: If the kernel is updated, a reboot will be required to apply changes.
* **Performance Spike**: A  Temporary increase in CPU and memory usage may occur during updates.
* **Data Safety**: Ensure you have backed up important files and configurations.
* **Downtime Preparation**: If your VM runs production workloads, schedule updates during a maintenance window.

This is a simple guide to patching VMs for all Linux systems.

**Ubuntu Linux / Debian**

```
sudo apt update
sudo apt upgrade -y
sudo apt full-upgrade -y
sudo apt autoremove -y
```

**CentOS / Red Hat / Oracle Linux**

**For CentOS 7 / RHEL 7 / Oracle Linux 7**

```
sudo yum update -y
sudo yum clean all
```

**For CentOS 8+ / RHEL 8+ / Oracle Linux 8+:**

```
sudo dnf update -y
sudo dnf clean all
```

**AlmaLinux / Rocky Linux**

```
sudo dnf update -y
sudo dnf clean all
```

**Fedora**

```
sudo dnf upgrade --refresh -y
sudo dnf autoremove -y
```

OpenSUSE

```
sudo zypper refresh
sudo zypper update -y
```

**CloudLinux**

```
sudo yum update -y   # or dnf update -y (if using newer versions)
sudo yum clean all
```

[Raise a Ticket](https://docs.neevcloud.com/neevcloud-products/support) to Proceed with the Patching of Major Linux OS Versions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.neevcloud.com/neevcloud-products/security/guide-to-patching-instances-of-major-linux-distributions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
