Wednesday, September 16, 2009

Handle broken dependecies with yum

Yum is the updater for rpm based Linux systems, including Fedora, Red Hat Enterprise Linux, and CentOS. Yum does a pretty good job of handling dependencies but its not perfect. If you have a bunch of updates to install but one of them has a broken dependency, the usual update command will fail. A basic update command looks like this:
# yum update
Alternatively, you could specify which packages to update and just list every package except the broken one, like this:
# yum update [package1] [package2] [...]
There is a convenient option added in though which will update all packages except those with broken dependencies. It looks like this:
# yum update --skip-broken

No comments:

Post a Comment