CentOS7でyum updateでエラーが出たとき

PHPのバージョンを5.4→7.3にしようとして、その準備にyum updateをしたときに何やらエラーが。

ERROR with transaction check vs depsolve:
python(abi) = 2.6 is needed by (installed) python-iwlib-0.1-1.2.el6.x86_64
python(abi) = 2.6 is needed by (installed) python-simplejson-2.0.9-3.1.el6.x86_64
** Found 15 pre-existing rpmdb problem(s), 'yum check' output follows:
10:centos-release-SCL-6-5.el6.centos.x86_64 has missing requires of centos-release = ('0', '6', None)
cloog-ppl-0.15.7-1.2.el6.x86_64 has missing requires of libgmp.so.3()(64bit)
grep-2.20-3.el6_7.1.x86_64 has missing requires of libpcre.so.0()(64bit)
hal-info-20090716-5.el6.noarch has missing requires of hal >= ('0', '0.5.10', None)
libgcj-4.4.7-16.el6.x86_64 has missing requires of libgmp.so.3()(64bit)
ppl-0.10.2-11.el6.x86_64 has missing requires of libgmp.so.3()(64bit)
python-iwlib-0.1-1.2.el6.x86_64 has missing requires of libpython2.6.so.1.0()(64bit)
python-iwlib-0.1-1.2.el6.x86_64 has missing requires of python(abi) = ('0', '2.6', None)
python-simplejson-2.0.9-3.1.el6.x86_64 has missing requires of libpython2.6.so.1.0()(64bit)
python-simplejson-2.0.9-3.1.el6.x86_64 has missing requires of python(abi) = ('0', '2.6', None)
python27-python-libs-2.7.5-10.el6.centos.alt.x86_64 has missing requires of libffi.so.5()(64bit)
python27-python-libs-2.7.5-10.el6.centos.alt.x86_64 has missing requires of libgdbm.so.2()(64bit)
1:readahead-1.5.6-2.el6.x86_64 has missing requires of upstart
satyr-0.16-2.el6.x86_64 has missing requires of librpm.so.1()(64bit)
2:vim-enhanced-7.4.629-5.el6.x86_64 has missing requires of perl(:MODULE_COMPAT_5.10.1)

エラー内容読むと、所々にel6の文字が。
以前CentOS6からアップグレードしたときに何やら幾つか残っていたみたい。

解決方法は、

$ yum remove *.el6.*

で削除してyum updateすると無事いきましたとさ。
手抜きしてOSのバージョン上げるのは良くないですね。