Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Convert CentOS Linux to RHEL using Red Hat Lightspeed

January 22, 2024
Nikhil Mungale
Related topics:
Linux
Related products:
Red Hat Enterprise LinuxRed Hat Lightspeed

     On June 30, 2024, CentOS Linux 7 will reach its end-of-life (EOL), marking the conclusion of official support and security updates. This development has prompted organizations and users relying on CentOS 7 to seek alternative solutions to ensure ongoing security and support. One prevalent and strategic choice is migrating from CentOS 7 to Red Hat Enterprise Linux (RHEL). The transition to RHEL is advantageous for several reasons, including continued access to regular security patches, extended support, and a robust ecosystem of tools and features. By converting to RHEL, organizations can maintain a stable and secure operating environment while aligning with a long-term, commercially supported Linux distribution.

    Using Red Hat Lightspeed to convert CentOS 7 to RHEL

    In this tutorial, we'll use Red Hat Lightspeed (formerly Red Hat Insights) to convert a CentOS 7 system to Red Hat Enterprise Linux. Red Hat Lightspeed continuously analyzes platforms and applications to predict risk, recommend actions, and track costs so enterprises can better manage hybrid cloud environments. Red Hat Lightspeed will be used to perform pre-conversion analysis, remediate issues, and execute the final conversion using Convert2RHEL.

    Step 1: Validate CentOS system

    To check whether you have a valid CentOS release version, enter the following:

    cat  /etc/centos-release

    The following output shows that this is a valid version:

    CentOS Linux release 7.9.2009 (Core)

    Step 2: Update your system

    We want our system to be up-to-date before we start the conversion.

    sudo yum  update  -y
    
    sudo reboot

    The output:

    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.excellmedia.net
     * extras: centos.excellmedia.net
     * updates: centos.excellmedia.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package NetworkManager.x86_64 1:1.18.8-1.el7 will be updated
    ---> Package NetworkManager.x86_64 1:1.18.8-2.el7_9 will be an update

    Step 3: Download and install Red Hat client tools

    Red Hat clients tools are required to set up subscription management, collect system information and perform remote configuration updates.

    sudo curl -o /etc/yum.repos.d/client-tools-for-rhel-7-server.repo https://ftp.redhat.com/redhat/client-tools/client-tools-for-rhel-7-server.repo
    sudo curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://www.redhat.com/security/data/fd431d51.txt
    sudo yum install -y subscription-manager insights-client rhc rhc-worker-script

    Step 4: Obtain organization ID and activation Key

    An activation key is a pre-shared authentication token, allowing authorized users to register and auto-configure systems. This approach enhances security and streamlines automation by executing a registration command with a combination of an activation key and organization ID instead of a username and password.

    Within your organization, administrative users can create and oversee activation keys through the Red Hat Hybrid Cloud Console. When an authorized user employs a preconfigured activation key for system registration via the command line, all system-level settings defined in the activation key are seamlessly applied to the system during registration. This simplifies and automates the configuration process for enhanced efficiency.

    To get started, simply log in to Red Hat Lightspeed. If you do not already have an account, you must create one first.

    Make sure your account has at least one RHEL subscription. A subscription is required for your system to access RHEL content for analysis and conversion. This also unlocks your newly converted system to enable the full features and benefits of RHEL and Red Hat Lightspeed. If you still need a subscription, a Developer Subscription for Individuals is available at no cost to use RHEL independently (not for an organization).

    Navigate to Red Hat Lightspeed > Inventory > System Configuration > Activation Keys to generate a new activation key (Figure 1). Also, make a note of the Organization ID displayed on this page.

    Key activation
    Figure 1: Key activation.

    Step 5: Register and connect with Red Hat Lightspeed

    Remote host configuration (rhc) client is a tool included with RHC that allows RHEL hosts to connect to the Red Hat Lightspeed services. Run the following command to register the system with Red Hat Lightspeed. Replace ORG_ID & ACT_KEY with the organization ID and activation key obtained in the previous step.

    rhc connect --organization ORG_ID --activation-key ACT_KEY

    Upon successful registration the following message will be displayed.

    Connecting centos7 to Red Hat.
    This might take a few seconds.
    * Connected to Red Hat Subscription Management
    * Connected to Red Hat Lightspeed
    * Activated the Remote Host Configuration daemon
    * Enabled sandbox.redhat.com services: remote configuration, insights, remediations, compliance
    Successfully connected to Red Hat!
    Manage your connected systems: https://red.ht/connector

    Verify system information in Red Hat Lightspeed by navigating to Red Hat Lightspeed > Inventory > Systems. Your CentOS system should be listed on this page.

     Step 6: Perform pre-conversion analysis using Red Hat Lightspeed

    Red Hat Lightspeed provides tools to perform pre-conversion analysis of the CentOS system remotely. This task identifies potential issues and guides you on how to remediate these issues before you convert.

    Navigate to Red Hat Lightspeed > Automation Toolkit > Tasks. Click on Run Task under Pre-conversion analysis for converting to RHEL (Figure 2). 

    You will be asked to choose the CentOS systems for the pre-conversion analysis. Once started, you can monitor the progress in the Activity tab. 

    task run
    Figure 2: Pre-conversion analysis.

     The pre-conversion analysis task might take approximately 15 minutes to finish. After completion, carefully review the report and apply the required remediations and verify the system's readiness for conversion (Figure 3). You can rerun the analysis if any changes were made based on the report.

    task run
    Figure 3: Results of conversion analysis.

    Step 7: Convert the system using Red Hat Lightspeed

    The final step is to use the Convert to RHEL from CentOS Linux 7 task provided by Red Hat Lightspeed to execute the conversion process remotely.

    Navigate to Red Hat Lightspeed > Automation Toolkit > Tasks. Click Run Task under Convert to RHEL from CentOS Linux 7 (see Figure 4). You will be asked to choose the CentOS systems for the conversion.

    convertion task
    Figure 4: Starting the conversion.

     Once started, you can monitor the progress in the Activity tab (Figure 5).

    convertion complete
    Figure 5: CentOS to RHEL conversion completed.

    Step 8: Verify conversion

    Run the following command to verify the system has been converted to RHEL:

    cat  /etc/redhat-release

    The following output shows that this is a valid version:

    Red Hat Enterprise Linux Server release 7.9 (Maipo)

    Congratulations! You have successfully converted your CentOS server to RHEL server.

    Find more resources

    Developer Subscription for Individuals is available at no cost to use RHEL independently (not for an organization). In addition, download the latest version of Red Hat Enterprise Linux to perform a clean install.

    Convert2RHEL is a command-line utility that analyzes your system’s readiness and converts RPM-based Linux operating systems (OS) to Red Hat Enterprise Linux. It’s an automated way to standardize on Red Hat Enterprise Linux instead of manually redeploying all your workloads.

    Red Hat Lightspeed continuously analyzes platforms and applications to predict risk, recommend actions, and track costs so enterprises can better manage hybrid cloud environments.  

    Last updated: November 6, 2025

    Related Posts

    • How to use Convert2RHEL to migrate CentOS to RHEL

    • Red Hat Enterprise Linux 9.3: Top features for developers

    • Getting started with RHEL on WSL

    • Secure RHEL systems using Ansible Automation Platform

    • How custom SELinux policies secure servers and containers

    • How to install Java 17 and 21 on Red Hat Enterprise Linux 8

    Recent Posts

    • Federated identity across the hybrid cloud using zero trust workload identity manager

    • Confidential virtual machine storage attack scenarios

    • Introducing virtualization platform autopilot

    • Integrate zero trust workload identity manager with Red Hat OpenShift GitOps

    • Best Practice Configuration and Tuning for Linux and Windows VMs

    What’s up next?

    Red Hat Insights API

    This cheat sheet shows you how to get actionable intelligence using Red Hat Lightspeed APIs so you can identify and address operational and vulnerability risks in your Red Hat Enterprise Linux environments before an issue results in downtime.

    Get the cheat sheet
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.