Some Cloudlinux repositories ([Imunify360] & [cloudlinux-imunify360]) are hosting the alt-python35-yara package and this package needs the yara package as a dependency:
repoquery -R --resolve --recursive alt-python35-yara | grep -Ei yara
The yara package is available in the above-mentioned repositories:
[yara] [3.5.0] [5.el7] [cloudlinux-imunify360]
[yara] [3.5.0] [5.el7] [imunify360]
The yara package is also available in the EPEL repository but the version is different:
[yara] [4.1.0] [1.el7] [epel]
The issue with the EPEL's version is that it does not meet the dependency requirements of alt-python35-yara package from the Cloudlinux's repositories.
The error appears when both the Cloudlinux's and the EPEL repositories are enabled on the system and we attempt to run “yum update”. This forces yum to search for the most recent version of the Yara package which is the one available in the EPEL repository but that version does not meet the dependency requirements of alt-python35-yara and yum updates fail, as a result, with the following error:
--> Finished Dependency
ResolutionError: Package: alt-python35-yara-3.5.0-10.el7.x86_64 (@cloudlinux-imunify360)
Removing: yara-3.5.0-5.el7.x86_64 (@cloudlinux-imunify360)
This is not a cPanel issue per se, nevertheless, we've opened an upstream case with the Cloudlinux team to investigate this further. For reference, the case number is UPS-365. For updates about this case, you need to contact Cloudlinux's support channels.
The alt-python35-yara package is outdated and could be removed from the server and that should resolve the issue.
yum remove yara
Nevertheless, if you wish to keep the package for whatever reason, then as a workaround, we can exclude only the yara package from the EPEL repository like this:
cat /etc/yum.repos.d/epel.repo | grep -Ei exclude -B 12
name=Extra Packages for Enterprise Linux 7 - $basearch
Then attempt to rebuild Yum's cache with this:
yum clean all && yum makecache
And finally yum updates should be able to run with no issue:
Loaded plugins: fastestmirror, priorities, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
* EA4: 220.127.116.11
* cpanel-addons-production-feed: 18.104.22.168
* cpanel-plugins: 22.214.171.124
* cloudlinux-x86_64-server-7: de-proxy.cl-mirror.net
* epel: mirror.speedpartner.de
No packages marked for update