Symptoms
You see an error similar to the following while trying to install cPanel or EazyApache4 packages.
No package cpanel-analytics available.
No package ea-brotli available.
Description
This is often caused by a typo in the command when run manually. However, if the package is known to exist, this can be caused by the repositories not being installed. The missing repository files can be manually recreated.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following commands to recreate the cPanel Addons repository.
touch /etc/yum.repos.d/cPAddons.repo
cat /usr/local/cpanel/etc/rpm/generic/cPAddons/yumrepo > /etc/yum.repos.d/cPAddons.repo
- Run the following command to recreate the cPanel Plugins repository.
- CentOS 7, CloudLinux 6/7
yum-config-manager --add-repo=https://securedownloads.cpanel.net/cpanel-plugins/0/cpanel-plugins.repo
- AlmaLinux 8/9, CloudLinux 8/9, Rocky Linux 8/9
dnf config-manager --add-repo=https://securedownloads.cpanel.net/cpanel-plugins/0/cpanel-plugins.repo
- CentOS 7, CloudLinux 6/7
- Run the following command to recreate the EasyApache4 repository.
- CentOS 7
yum-config-manager --add-repo=https://securedownloads.cpanel.net/EA4/EA4.repo
- AlmaLinux 8/9, Rocky Linux 8/9
dnf config-manager --add-repo=https://securedownloads.cpanel.net/EA4/EA4.repo
- CloudLinux
rpm -i https://repo.cloudlinux.com/cloudlinux/EA4/$version/updates/x86_64/cloudlinux-ea4-release-1-7.el$version.noarch.rpm
Please note that "$version" must be replaced with the CloudLinux version (i.e.,7
,8
, or9
).
- CentOS 7