Uninstalling CloudLinux

Navigation:  Installation >

Uninstalling CloudLinux

Previous pageReturn to chapter overviewNext page

You can always uninstall CloudLinux. In this case, we will 'convert' the system back to CentOS. Even if the original system was RHEL - we will still convert to CentOS state.

 

The following actions will be taken:

 

1.LVE related packages will be removed.

2.CloudLinux repositories & yum plugin will be removed.

3.CentOS repositories will be setup.

 

At the end, the script will provide instructions on how to finish the conversion back to CentOS. That will require removal of CloudLinux kernel (manual step), and installation of CentOS kernel (if needed).

 

To uninstall CloudLinux, do:

 

$ wget -O cldeploy http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
$ sh cldeploy -c

 

Now you have converted back to CentOS and it is the time to install kernel.

 

To delete CloudLinux kernel run:

 

rpm -e --nodeps kernel-2.6.32-673.26.1.lve1.4.27.el6.x86_64

 

To install new CentOS kernel once you deleted CloudLinux kernel, type yum install kernel

 

If yum says that the latest kernel is already installed, it is OK.

 

Please check your bootloader configuration before rebooting the system.

 

To remove unused kmods and lve libs run:

 

yum remove lve kmod*lve*

 

Kernel package and related LVE packages should be deleted and the required kernel will be installed.

 

Before the reboot the following command should be executed for restoring Apache and httpd.conf without mod_hostinglimits:

 

For EasyApache 3:

 

/scripts/easyapache --build

 

For EasyApache 4:

 

/usr/local/bin/ea_install_profile --install /etc/cpanel/ea4/profiles/default.json

 

Please note that some of the packages from CloudLinux repo will still be present. They are the 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.