Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Migrate from CentOS to Oracle Linux - DesignLinux

Jun 18 2021
designlinux 0 Comments

With the shift in focus from CentOS project to CentOS Stream which will now serve as the upstream to RHEL, a few CentOS alternatives have been floated to replace CentOS 8.

For while now CentOS has been widely used by small businesses and developers in server environments given that it provides the stability and reliability that RHEL offers at absolutely no cost. Being a rolling release and a Beta version for future RHEL releases, CentOS Stream will certainly not be recommended for production workloads.

A few alternatives have been floated as worthy alternatives. AlmaLinux has emerged as a viable candidate being 1:1 binary compatible with RHEL. We have covered how you can migrate from CentOS 8 to AlmaLinux 8.4. The other recommended alternative is Oracle Linux which is 100% compatible with RHEL. This means the applications and features remain the same for Oracle Linux.

In this guide, we walk you through the migration of CentOS to Oracle Linux.

CAUTION:

The switch from CentOS 8 to Oracle Linux went along smoothly in our case, However, we cannot guarantee with certainty that the same will be replicated in your case.

As a precaution, we advise you to perform a complete backup of all your files before you start the migration. In addition, ensure that you have a fast and stable internet connection to update your system packages and download the latest Oracle Linux packages.

That said, follow the steps below to start your migration.

Migrating from CentOS to Oracle Linux

First off, log in to your CentOS system and upgrade it to the latest current release. At the moment, the latest CentOS release is CentOS 8.4.

$ sudo dnf update
Update to CentOS 8.4
Update to CentOS 8.4

The upgrade will take quite a while, and will for the most part depend on your internet connection. The faster your internet connection, the faster the upgrade will be.

Then check if your system has been upgraded to the latest version as shown.

$ cat /etc/redhat-release
Check CentOS Version
Check CentOS Version

Next, download and run the migration script is available from Github to help you switch from your CentOS instance to Oracle Linux. It performs a couple of operations including removing any CentOS-specific packages and replacing them with the Oracle Linux equivalent. At the moment, the script supports CentOS 6, 7, and 8 releases and does not support CentOS Stream.

To download the script, run the curl command as shown.

$ curl -O https://raw.githubusercontent.com/oracle/centos2ol/main/centos2ol.sh

This downloads the migration script called centos2ol.sh as indicated.

Download CentOS to Oracle Linux Migration Script
Download CentOS to Oracle Linux Migration Script

Next, assign execute permissions using the chmod command.

$ chmod +x centos2ol.sh

To start the migration run the script as shown.

$ sudo bash centos2ol.sh

As mentioned earlier, the script performs a number of operations. It first checks if all the required packages needed during the upgrade are present and installs the missing ones.

CentOS to Oracle Linux Migration Process
CentOS to Oracle Linux Migration Process

It then proceeds to back up and obsolete old CentOS repository files.

Backup Old CentOS Repositories
Backup Old CentOS Repositories

Next, it enables the Oracle Linux App stream and Base OS repositories and removes the CentOS equivalent ones.

Enable Oracle Linux Repositories
Enable Oracle Linux Repositories

After switching to Oracle Linux repositories, it syncs with the online repositories and upgrades the Oracle Linux packages. It will also reinstall some packages.

Syncing with Online Oracle Repositories
Syncing with Online Oracle Repositories

The entire process is quite long, and you may want to give yourself at least 2 – 3 hours and perhaps take a walk or go shopping. Once the switch is complete, you will be prompted to reboot your CentOS system as shown.

CentOS to Oracle Linux Migration Completes
CentOS to Oracle Linux Migration Completes

Simply run the command:

$ sudo reboot

During the reboot, the Oracle Linux log will be splashed on the screen.

Oracle Linux Reboot
Oracle Linux Reboot

Shortly thereafter, the Grub menu will be displayed. The Oracle Linux Server entry will be first on the list, so hit ENTER on the keyboard to boot into Oracle Linux.

Oracle Linux Boot Menu
Oracle Linux Boot Menu

Once you are logged in, once again, verify the OS version as follows.

$ cat /etc/os-release 
Check Oracle Linux Version
Check Oracle Linux Version

And that’s it. We hope you found this guide useful.

Related

Tags: CentOS Tips, Oracle Linux Tips

11 Best Media Server Software for Linux in 2021

Prev Post

LFCA: Learn the Basic Concepts of Using Containers – Part 22

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 481
  • 612,660

DesignLinux.com © All rights reserved

Go to mobile version