> 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-upgrade-rocky-linux-to-9.4.md).

# How to Upgrade Rocky Linux to 9.4

**1. Take snapshot instance before Upgrade 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/d2J8DifFhPpHVNT48ccj" 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 && Upgrade**

```
sudo yum update -y && sudo yum upgrade -y
```

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

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

**6.Reboot**

**7.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>

**8.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)
