How to Uninstall CloudLinux from cPanel – Complete CloudLinux Removal Guide
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