> 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="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2F858Pic25clKYhqQMHWA5%2Fimage.png?alt=media&amp;token=f6074bea-8fb8-40a6-8571-f6cebfa8c563" alt=""><figcaption></figcaption></figure>

```
sudo uname -r
```

<figure><img src="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2F6niwx531LDHIC5hQutds%2Fimage.png?alt=media&amp;token=b92e66d7-20b2-46bc-9b76-013a01bc722c" alt=""><figcaption></figcaption></figure>

**3.Run Command Check Available Updates**

```
sudo yum check-update
```

<figure><img src="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2FOUCK10Ub8AC4ArJON9SM%2Fimage.png?alt=media&amp;token=d708c677-0c26-4513-8a06-42a47850c8d0" alt=""><figcaption></figcaption></figure>

**4.Run Command Update**

```
sudo yum update -y
```

<figure><img src="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2FcC8feLWBSD8Dt1RAa99j%2Fimage.png?alt=media&amp;token=f6547c0d-05d5-4f4a-98bd-8f4d6e594365" 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="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2FakYscm1WM3AyhcjlJ0sP%2Fimage.png?alt=media&amp;token=f484c7ca-527d-40c2-8fa7-d5d54e773272" alt=""><figcaption></figcaption></figure>

```
sudo uname -r
```

<figure><img src="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2F3VvNH9AsiInkF2UA4WMx%2Fimage.png?alt=media&amp;token=333ca493-a625-49ba-8bf1-ce18e17e57ff" 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)
