# 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](https://docs-epc.gitbook.io/ncs-documents/ncs-documents-en/compute/compute-instance/managing-instance/take-snapshot)

**2.Check OS and Kernel detail**

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

<figure><img src="https://content.gitbook.com/content/4csDFrNQz0Q4tDnx3xyT/blobs/2pKYnCf8k9MCb1LXSfrh/image.png" alt=""><figcaption></figcaption></figure>

```
sudo uname -r
```

<figure><img src="https://content.gitbook.com/content/4csDFrNQz0Q4tDnx3xyT/blobs/mJlEQiROws6p0KEO40xy/image.png" alt=""><figcaption></figcaption></figure>

**3.Run Command Check Available Updates**

```
sudo yum check-update
```

<figure><img src="https://content.gitbook.com/content/4csDFrNQz0Q4tDnx3xyT/blobs/RqMKuWHCwZH0ewjuop0F/image.png" alt=""><figcaption></figcaption></figure>

**4.Run Command Update**

```
sudo yum update -y
```

<figure><img src="https://content.gitbook.com/content/4csDFrNQz0Q4tDnx3xyT/blobs/MjFlX31UA4CIQM27bEDD/image.png" 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://content.gitbook.com/content/4csDFrNQz0Q4tDnx3xyT/blobs/qUncEkKp0qrkOIAwNPYA/image.png" alt=""><figcaption></figcaption></figure>

```
sudo uname -r
```

<figure><img src="https://content.gitbook.com/content/4csDFrNQz0Q4tDnx3xyT/blobs/1K8h6XhFk5peOkuPOoXO/image.png" 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](https://docs-epc.gitbook.io/ncs-documents/ncs-documents-en/storage/block-storage/managing-volume-s/create-from-a-snapshot)
2. Create Instance from Volume : [https://docs-epc.gitbook.io/ncs-documents/compute/instance/launching-instance-s/launching-from-a-bootable-volume](https://docs-epc.gitbook.io/ncs-documents/ncs-documents-en/compute/compute-instance/broken-reference)
