Bitbull Tech Notes - home of free minds ...

yum check-update: Updateinfo file is not valid XML: ...7/epel/gen/updateinfo.xml', mode 'rt' at 0x4bbe150>

This errors are created hourly on CentOS7 systems by: /etc/cron.hourly/0yum-hourly.cron

I fixed like this:

[root@name1 named]# yum check-update  | tail -2  
Updateinfo file is not valid XML: <open file '/var/cache/yum/x86_64/7/epel/gen/updateinfo.xml', mode 'rt' at 0x4bbe150>
util-linux.x86_64                         2.23.2-33.el7_3.2              updates
webmin.noarch                             1.840-1                        Webmin 

[root@name1 named]# yum clean all
...

[root@name1 named]# rm -rf /var/cache/yum/*

[root@name1 named]# yum makecache
...

[root@name1 named]# yum check-update  | tail -2  
util-linux.x86_64                         2.23.2-33.el7_3.2              updates
webmin.noarch                             1.840-1                        Webmin 

**** ERROR IS GONE ****

 

 

HowTo do tricky downgrade with yum (example)

This is tricky, because the version of Samba I need ist no longer available on the Repos.

Remove the software you want to downgrade:

rpm -qa | grep samba | xargs rpm -e --nodeps
rpm -e --nodeps libsmbclient libwbclient

Manually install the needed Version:

[root@backup x86_64]# ls -1
libsmbclient-4.1.1-10031.el7.centos.x86_64.rpm
libwbclient-4.1.1-10031.el7.centos.x86_64.rpm
samba-4.1.1-10031.el7.centos.x86_64.rpm
samba-client-4.1.1-10031.el7.centos.x86_64.rpm
samba-common-4.1.1-10031.el7.centos.x86_64.rpm
samba-dc-4.1.1-10031.el7.centos.x86_64.rpm
samba-dc-libs-4.1.1-10031.el7.centos.x86_64.rpm
samba-libs-4.1.1-10031.el7.centos.x86_64.rpm
samba-pidl-4.1.1-10031.el7.centos.x86_64.rpm
samba-python-4.1.1-10031.el7.centos.x86_64.rpm
samba-test-4.1.1-10031.el7.centos.x86_64.rpm
samba-vfs-glusterfs-4.1.1-10031.el7.centos.x86_64.rpm
samba-winbind-4.1.1-10031.el7.centos.x86_64.rpm
samba-winbind-clients-4.1.1-10031.el7.centos.x86_64.rpm
samba-winbind-krb5-locator-4.1.1-10031.el7.centos.x86_64.rpm
samba-winbind-modules-4.1.1-10031.el7.centos.x86_64.rpm

yum install *.rpm

Check if all deps are solved:

yum check

Pin the needed package versions:

yum -y install yum-versionlock
yum versionlock add samba\* BackupPC

 

Exclude the Versions from beeing upgraded:

vi /etc/yum.conf
------
[main]
...
exclude=*samba* libsmb* libwbclient* BackupPC
------

 

Check if yum is doing as expected:

yum makecache
yum upgrade

 

 

 

 

 

 

Home