How to convert CentOS to Oracle Linux 7
< Install Oracle Linux 7 | Add user accounts >
Its possible to convert an existing CentOS 5, 6, and 7 installation into a Oracle Linux 7 installation. The process is very simple. This currently does not work with CentOS 8.
First, download the script to convert it from the Oracle website:
[root@localhost ~]# curl -O https://linux.oracle.com/switch/centos2ol.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6544 100 6544 0 0 6544 0 0:00:01 --:--:-- 0:00:01 15507
[root@localhost ~]# sh centos2ol.sh # Remember to run this script as root
After a few minutes, the system should be converted.