Symptoms
You may see an error like the following while trying to install cPanel packages, where PACKAGE is the rest of a package name of a cPanel or EasyApache package.
No package cpanel-PACKAGE available.
No package ea-PACKAGE available.
Description
This may be caused by a typo if you are running the command manually. If the package is known to exist, this can be caused by the repositories not being installed.
Workaround
If there are missing cPanel repositories, they can be reinstalled like so:
cPanel Addons:
yum-config-manager --add-repo=file:///usr/local/cpanel/etc/rpm/generic/cPAddons/yumrepo
cPanel Plugins:
yum-config-manager --add-repo=https://securedownloads.cpanel.net/cpanel-plugins/0/cpanel-plugins.repo
EasyApache:
yum-config-manager --add-repo=https://securedownloads.cpanel.net/EA4/EA4.repo