# 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
