Yum refuses to update
Categories linux | 24 February, 2009 | By Stephen Sykes
I happens that I wish to upgrade apache, and I know there is an update available.
So, I follow the advice given:
# yum update httpd Setting up Update Process Could not find update match for httpd No Packages marked for Update
Ok, that’s not working. Let’s try this:
# yum clean all Cleaning up Everything # yum update httpd fedora 100% |=========================| 2.1 kB 00:00 primary.sqlite.bz2 100% |=========================| 5.8 MB 00:02 updates 100% |=========================| 2.6 kB 00:00 primary.sqlite.bz2 100% |=========================| 2.2 kB 00:00 Setting up Update Process Could not find update match for httpd No Packages marked for Update
No dice.
I browsed the repo, and sure enough the update is there. Why won’t yum find it?
Eventually after a bunch of googling, I found this answer.
# yum upgrade Setting up Upgrade Process Resolving Dependencies --> Running transaction check ---> Package fedora-release.noarch 0:8-6.transition set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: fedora-release noarch 8-6.transition updates 31 k Transaction Summary ============================================================================= Install 0 Package(s) Update 1 Package(s) Remove 0 Package(s) Total download size: 31 k Is this ok [y/N]: y Downloading Packages: (1/1): fedora-release-8-6 100% |=========================| 31 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : fedora-release ######################### [1/2] Cleanup : fedora-release ######################### [2/2] Updated: fedora-release.noarch 0:8-6.transition Complete! [root@c100586 yum.repos.d]# yum update httpd updates-newkey 100% |=========================| 2.3 kB 00:00 primary.sqlite.bz2 100% |=========================| 4.6 MB 00:01 Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.9-1.fc8 set to be updated --> Processing Dependency: httpd-tools = 2.2.9-1.fc8 for package: httpd --> Processing Dependency: httpd = 2.2.6-3 for package: httpd-manual --> Processing Dependency: httpd = 2.2.6-3 for package: mod_ssl --> Running transaction check ---> Package httpd-tools.x86_64 0:2.2.9-1.fc8 set to be updated ---> Package mod_ssl.x86_64 1:2.2.9-1.fc8 set to be updated ---> Package httpd-manual.x86_64 0:2.2.9-1.fc8 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: httpd x86_64 2.2.9-1.fc8 updates-newkey 983 k Updating for dependencies: httpd-manual x86_64 2.2.9-1.fc8 updates-newkey 832 k httpd-tools x86_64 2.2.9-1.fc8 updates-newkey 68 k mod_ssl x86_64 1:2.2.9-1.fc8 updates-newkey 86 k Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 1.9 M Is this ok [y/N]:
That’s better.
Really, it was totally unclear from any documentation that I could find that I would need to run yum upgrade.
RSS
Thanks for the post, a life saver. Spent hours looking for upgrading httdp to the latest version 2.2.9 and my yum wouldn’t show it!
You were spot on, a “yum update fedora-release” and it sorted the whole thing out.
Thanks a million!
Brian