Uninstalling
You can always uninstall CloudLinux OS. In this case, the system will be converted back to AlmaLinux or CentOS* (Depends on what system the conversion was done from).
CentOS Linux 8 reached End Of Life (EOL) on December 31st, 2021. You can still uninstall CloudLinux and return to CentOS 8, but we don't guarantee stable operation of the system and its repositories after this action.
The following actions will be taken:
- LVE related packages will be removed.
- CloudLinux OS repositories & yum plugin will be removed.
- AlmaLinux or CentOS* repositories will be set up.
In the end, the script will provide instructions on how to finish the conversion back to AlmaLinux or CentOS*. That will require removal of CloudLinux OS kernel (manual step), and installation of AlmaLinux or CentOS* kernel (if needed).
Do not forget to free up a CloudLinux OS Legacy (Shared) license by removing the server from the Servers section of your CLN account. After that, if you don't intend to use the license anymore, you can remove it to avoid being billed for it.
To uninstall CloudLinux OS, run:
wget -O cldeploy https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
sh cldeploy -c
Now you have converted back to AlmaLinux or CentOS* and it is the time to install kernel.
To delete CloudLinux OS kernel, run (change the kernel package name to the one you've been using):
rpm -e --nodeps $(rpm -qa | grep kernel | grep lve)
To install new AlmaLlinux or CentOS* kernel once you deleted CloudLinux OS kernel, run the following command:
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/cpanel/default.json
Note
Some of the packages from CloudLinux OS repo will still be present. They are the same as AlmaLinux or CentOS* packages, and don't have to be removed. They will be updated in the future from AlmaLinux or CentOS* repositories, as new versions come out.