> For the complete documentation index, see [llms.txt](https://docs-epc.gitbook.io/ncs-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-epc.gitbook.io/ncs-documents/compute/compute-instance/how-to-update-rocky-linux-9.md).

# 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)
