Recovered from the older tannerjc.net wiki snapshot dated January 23, 2016.

Downgrade / Rollback

  • downgrades work as long as you specify to rollback deps in the same command: yum downgrade glibc glibc-common

Transaction check error

Sometimes yum commands will fail with a Transaction Check Error message.

Transaction check errors are the result of an aborted or failed yum update. Yum has a record of commands it still needs to run and is tripped up by file conflicts. These example conflict errors are largely the result of having the same file owned by a 32 bit and 64 bit rpm package ….

Transaction Check Error:
  package tzdata-2010i-1.el5.x86_64 (which is newer than tzdata-2010e-1.el5.noarch) is already installed
  file /etc/my.cnf from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-5.0.77-3.el5.x86_64
  file /etc/sysconfig/nspluginwrapper from install of nspluginwrapper-1.3.0-9.el5.i386 conflicts with file from package nspluginwrapper-0.9.91.5-22.el5.x86_64
  file /usr/share/man/man5/pam_krb5.5.gz from install of pam_krb5-2.2.14-15.i386 conflicts with file from package pam_krb5-2.2.14-10.x86_64
  file /usr/share/man/man8/pam_krb5.8.gz from install of pam_krb5-2.2.14-15.i386 conflicts with file from package pam_krb5-2.2.14-10.x86_64
  file /usr/share/man/man1/curl.1.gz from install of curl-7.15.5-9.el5.i386 conflicts with file from package curl-7.15.5-2.1.el5_3.5.x86_64
  file /usr/share/man/man5/nss_ldap.5.gz from install of nss_ldap-253-25.el5.i386 conflicts with file from package nss_ldap-253-22.el5_4.x86_64
  file /usr/share/locale/de/LC_MESSAGES/libpq.mo from install of postgresql-libs-8.1.21-1.el5_5.1.i386 conflicts with file from package postgresql-libs-8.1.18-2.el5_4.1.x86_64
  file /usr/share/locale/fr/LC_MESSAGES/libpq.mo from install of postgresql-libs-8.1.21-1.el5_5.1.i386 conflicts with file from package postgresql-libs-8.1.18-2.el5_4.1.x86_64
  file /usr/kerberos/sbin/krb524d from install of krb5-workstation-1.6.1-36.el5_5.4.x86_64 conflicts with file from package krb5-server-1.6.1-36.el5.x86_64
  file /usr/share/locale/hu/LC_MESSAGES/firstboot.mo from install of firstboot-1.4.27.8-1.el5.x86_64 conflicts with file from package firstboot-tui-1.4.27.7-1.el5.x86_64
  • Create a list of all the rpms that are affected … tzdata-2010i-1 mysql pam_krb5 curl nss_ldap postgresql-libs krb5-workstation firstboot

  • Inspect each package for any files that have been altered rpm -V packagename

  • Remove all matches of each package and then reinstall

rpm -e --nodeps --allmatches tzdata; yum -y install tzdata
rpm -e --nodeps --allmatches mysql; yum -y install mysql
rpm -e --nodeps --allmatches nspluginwrapper; yum -y install nspluginwrapper
rpm -e --nodeps --allmatches pam_krb5; yum -y install pam_krb5
rpm -e --nodeps --allmatches curl; yum -y install curl
rpm -e --nodeps --allmatches nss_ldap; yum -y install nss_ldap
mv /etc/ldap.conf /etc/ldap.conf.orig
mv /etc/ldap.conf.rpmsave /etc/ldap.conf
rpm -e --nodeps --allmatches postgresql-libs; yum -y install postgresql-libs
rpm -e --nodeps --allmatches krb5-server
rpm -e --nodeps --allmatches krb5-workstation
rpm -e --nodeps --allmatches krb5-devel
yum -y install krb5-server krb5-devel krb5-workstation
rpm -e --nodeps --allmatches firstboot-tui
rpm -e --nodeps --allmatches firstboot
yum -y install firstboot firstboot-tui
  • Test yum update yum -y update