Introduction
After installing or removing an EasyApache 4 repository, such as CloudLinux or Imunify360, it may be necessary to replace the packages from the old repository with the packages provided by the current repository. EasyApache 4 packages installed from more than one EasyApache 4 repository or having multiple EasyApache 4 repositories enabled will eventually lead to package dependency issues.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Disable the repos in
/etc/yum.repos.d/
that you do not intend to use.
Please note that you can disable a repository by changing theenabled=1
line toenabled=0
. - Use the
distro-sync
option ofyum
/dnf
to replace the packages from the disabled repos with packages from the enabled repos.- CentOS 7 CloudLinux 6/7
yum distro-sync ea-*
- CloudLinux 8/9, AlmaLinux 8/9, Rocky Linux 8/9
dnf distro-sync ea-*
- CentOS 7 CloudLinux 6/7
- Review the output to ensure the packages will be uninstalled from the incorrect repos and installed from the correct repo.
- Enter "y" to proceed if everything looks correct.