---
title: How to convert CentOS 8 to Rocky Linux
description: "### **Step 1** Update your CentOS installation: ``` $ sudo dnf update -y $ sudo dnf upgrade -y ``` ### **Step 2** Reboot now your OS: ``` $ sudo reboot ``` ### **Step 3** Download the migration script: ``` $…"
url: "https://www.clouvider.com/knowledge_base/how-to-convert-centos-8-to-rocky-linux/"
updated: "2021-12-22"
category: Guides / Linux
tags:
  - CentOS
  - Linux
  - Rocky
---

# How to convert CentOS 8 to Rocky Linux

### **Step 1**

Update your CentOS installation:

```
$ sudo dnf update -y
$ sudo dnf upgrade -y
```

### **Step 2**

Reboot now your OS:

```
$ sudo reboot
```

### **Step 3**

Download the migration script:

```
$ wget https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh
```

### **Step 4**

Run the migration script:

```
$ chmod +x migrate2rocky.sh
$ sudo ./migrate2rocky.sh -r
```

### **Step 5**

After migration, please reboot your OS:

```
$ sudo reboot
```
