How to uninstall Cloudlinux from cpanel


How to uninstall Cloudlinux from cpanel

Uninstall Cloudlinux from cPanel  :

# wget -O cldeploy
# sh cldeploy -c

Please, note that some of the packages from CloudLinux repo will still be present. They are same as CentOS packages, and don’t have to be removed. They will be updated in the future from CentOS repositories, as new versions come out.

You can use below steps further:

1) Check if your server is Cloudlinux installed in it using below command.

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

2) Update your CentOS-provided RPMs

# yum upgrade -y

3) Rebuild Apache

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


# /scripts/easyapache –build

4) Reinstall a non-CloudLinux kernel.

# yum –disableexcludes=all install kernel

5) Remove CloudLinux Kernel

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

6) Reinstall any CloudLinux-provided RPMs that are also provided by CentOS

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

7) Downgrade any CloudLinux provided RPMs to the CentOS version

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

8) Remove any remaining CloudLinux specific RPMs

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

9) Upgrade any downgraded CentOS provided RPMs

# yum upgrade -y

10) Reboot the server to use the new non-CloudLinux kernel

# reboot

Share this post