I've found while upgrading RHEL5.x to RHEL5.y that yum will hang if you are trying to upgrade the tog-pegsus package. This has specifically bitten me while upgrading from RHEL5.1, 5.2, and 5.3. RHEL5.4 is the newest version as of this post, and I don't know if it will happen when upgrading to RHEL5.5
I've found the easiest way to deal with it is to remove the tog-pegasus packages (32 and 64 bit) before you run yum to update your system.
rpm -e --nodeps --allmatches tog-pegasus
Then run yum -y update and you'll be all set. If you've forgotten to remove tog-pegasus beforehand, and yum hangs on you, there may be a way out. I have found that after yum hangs you can kill the yum update process, then remove the tog-pegasus packages. However if you try to re-run yum, you'll get loads of errors. I was told that yum-complete-transaction would help, but this seems to want to remove ALL packages, which of course is not very helpful! What has worked for me is to use the package-cleanup tool:
package-cleanup --cleandupes
This removes the old packages that you've previously upgraded (yum upgrade all packages first, and then removes the old packages. If yum hangs installing a package and you kill it, it never got around to removing the old packages... hence the errors) and will then let you run yum update to finish the upgrade process.
I hope this helps someone, it's certainly gotten me out of trouble.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment