Symptoms
Trying to run yum update gets an error similar to this:
[root@server ~]# yum -y update
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 12.34.56.78
* cpanel-addons-production-feed: 12.34.56.78
* cpanel-plugins: 12.34.56.78
* base: mirror.abc.efg
* epel: epel.mirror.abc.efg
* extras: mirror.abc.efg
* updates: mirror.abc.efg
Resolving Dependencies
--> Running transaction check
---> Package matio.x86_64 0:1.5.3-1.el7 will be updated
--> Processing Dependency: libmatio.so.2()(64bit) for package: vips-8.5.6-1.el7.cloudlinux.x86_64
---> Package matio.x86_64 0:1.5.17-3.el7 will be an update
--> Finished Dependency Resolution
Error: Package: vips-8.5.6-1.el7.cloudlinux.x86_64 (@imunify360)
Requires: libmatio.so.2()(64bit)
Removing: matio-1.5.3-1.el7.x86_64 (@imunify360)
libmatio.so.2()(64bit)
Updated By: matio-1.5.17-3.el7.x86_64 (epel)
~libmatio.so.9()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Description
You have the epel (or possibly another third party) repository installed in addition to a cloudlinux repository like imunify360 or kernel care. These repositories disagree on what version of the vips package should be installed, causing the dependency conflict.
Workaround
The top of the /etc/yum.repos.d/epel.repo file looks like this:
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch&infra=$infra&content=$contentdir
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Add this line:
exclude=matio
under the name= line so that it looks like this:
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
exclude=matio
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch&infra=$infra&content=$contentdir
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7