# How to Update Rocky Linux 9

**1. Take snapshot instance before update Rocky Linux 9**

How to : [https://docs-epc.gitbook.io/ncs-documents/compute/instance/managing-instance-s/taking-snapshot-s](/ncs-documents/compute/compute-instance/managing-instance/take-snapshot.md)

**2.Check OS and Kernel detail**

```
sudo cat /etc/os-release
```

<figure><img src="/files/3Oi22t4WY5nrCYofA4HN" alt=""><figcaption></figcaption></figure>

```
sudo uname -r
```

<figure><img src="/files/ayycJCSwlrTp3IROXWNZ" alt=""><figcaption></figcaption></figure>

**3.Run Command Check Available Updates**

```
sudo yum check-update
```

<figure><img src="/files/PuLGIYjnxccMVFPx6l7t" alt=""><figcaption></figcaption></figure>

**4.Run Command Update**

```
sudo yum update -y
```

<figure><img src="/files/mkKP0dADy8FyW92Aa9ZD" alt=""><figcaption></figcaption></figure>

**5.After update finish, the status will show "Complete!"**

**6.Check OS and Kernal detail**

```
sudo cat /etc/os-release
```

<figure><img src="/files/G3jXDCx1kRYmCJYZZVlW" alt=""><figcaption></figcaption></figure>

```
sudo uname -r
```

<figure><img src="/files/9pdF8hmrxYdjJvgsq8DC" alt=""><figcaption></figcaption></figure>

**7.Check Service on the instance**

***Roll back steps***

In case the service not running properly, We can roll back as step below

1. Create Volume from Snapshot : [https://docs-epc.gitbook.io/ncs-documents/storage/block-storage/managing-volume-s/creating-from-a-volume-snapshot](/ncs-documents/storage/block-storage/managing-volume-s/create-from-a-snapshot.md)
2. Create Instance from Volume : [https://docs-epc.gitbook.io/ncs-documents/compute/instance/launching-instance-s/launching-from-a-bootable-volume](broken://pages/qrN1wpdFi5BjgbFT2767)


---

# 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-epc.gitbook.io/ncs-documents/compute/compute-instance/how-to-update-rocky-linux-9.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.
