KatHosting Logo KatHosting
Web Hosting 2 min read 2 views

How to Uninstall CloudLinux from cPanel – Complete CloudLinux Removal Guide

KatHosting
Published on September 21, 2026
Learn how to safely uninstall CloudLinux from a cPanel VPS or dedicated server and convert your server back to a standard supported Linux operating system. This guide covers the CloudLinux removal process and essential steps to verify your cPanel server after uninstallation.

How to Uninstall CloudLinux from cPanel

CloudLinux OS Shared can be uninstalled when you need to revert the server to the original operating system it was converted from, such as AlmaLinux or CentOS.

Step 1: Download the CloudLinux Deployment Script

First, download the CloudLinux deployment script using the following command:

wget -O cldeploy https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy

Step 2: Start the CloudLinux Uninstallation

Run the deployment script with the -c option to convert the server back to its original operating system:

sh cldeploy -c

Step 3: Remove CloudLinux LVE Kernels

Remove the CloudLinux LVE kernel packages with the following command:

rpm -e --nodeps $(rpm -qa | grep kernel | grep lve)

Step 4: Install the Standard Kernel

Install the standard Linux kernel on the server:

yum install kernel

Step 5: Update the Server Packages

Run the package manager to update the system packages:

yum

Step 6: Remove CloudLinux LVE Packages

Remove the remaining CloudLinux LVE and related kernel module packages:

yum remove lve kmod*lve*

Step 7: Restore the cPanel EasyApache Profile

Finally, reinstall the default cPanel EasyApache profile using:

/usr/local/bin/ea_install_profile --install /etc/cpanel/ea4/profiles/cpanel/default.json
Important: CloudLinux removal changes core system packages and the server kernel. Always ensure you have a current backup or VPS snapshot before proceeding. Perform these commands as the root user and verify that the server is compatible with the operating system you are restoring.
Enjoyed this article? Share with developers & site owners: