How to Uninstall cloudlinux and covert back to centos cpanel server

To restore back from cloudlinux and convert back to Centos OS you can make the following steps:

Uninstall cloudlinux

wget -O cldeploy
sh cldeploy -c

Verify If cloudlinux Installed

/usr/local/cpanel/bin/cloudlinux_system_install -c

after restore back to centos  some packages from CloudLinux repo will still be present. They are same as CentOS packages, and don’t have to be removed. now you need make some centos Updates :

Update your CentOS-provided RPMs

yum upgrade -y

Rebuild Apache server

/usr/local/cpanel/scripts/easyapache –build

Reinstall non CloudLinux kernel

yum –disableexcludes=all install kernel

Remove CloudLinux Kernell

rpm -qa |awk ‘/^kernel.*lve/ {print $1|”xargs yum -y erase”}’

Reinstall any CloudLinux provided RPMs that also provided by CentOS

rpm -qa –qf “[%{VENDOR} %{NAME}n]“|awk ‘/CloudLinux/ {print $2|”xargs yum reinstall -y”}’

Downgrade any RPMs provided by CloudLinux to the CentOS version

rpm -qa –qf “[%{VENDOR} %{NAME}n]“|awk ‘/CloudLinux/ {print $2|”xargs yum downgrade -y”}’

Remove any remaining CloudLinux RPMs

rpm -qa –qf “[%{VENDOR} %{NAME}n]“|awk ‘/CloudLinux/ {print $2|”xargs yum erase -y”}’

Upgrade all downgraded CentOS provided RPMs

yum upgrade -y

Then you need to reboot server to use the new non-CloudLinux kernel


5,421 total views, 3 views today

Leave a Reply

Your email address will not be published. Required fields are marked *