In order to convert your RHEL 7 operating system to CentOS 7 do the following:
- Make a backup of the system. We didn't test all possible scenarios so there is a risk that something goes wrong. In such a situation you will have a restore point.
- Download the migrate_7.py script:
$ curl -O https://raw.githubusercontent.com/cloudlinux/rhel2centos/main/migrate_7.py
- Run the script and check its output for errors:
$ sudo python migrate_7.py ... The system is migrated to CentOS 7
- Ensure that your system was successfully converted:
# check release file $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) # check that the system boots CentOS kernel by default $ sudo grubby --info DEFAULT | grep CentOS title=CentOS Linux (3.10.0-1160.31.1.el7.x86_64) 7 (Core)
Licensed under the GPLv3 license, see the LICENSE file for details.