'update' fails on on RHEL6:
$ sudo yum --servername=SERVER --message "errata step03 fix" --schedule update
[sudo] password for USER:
Loaded plugins: cpacman_yum, rhnplugin
-=> Processing Server SERVER
Setting up Update Process
Error: Package tuple ('sudo', 'x86_64', '0', '1.7.4p5', '5.el6') could not be found in rpmdb
Attempt to skip broken yields the same result:
$ sudo yum -d5 --skip-broken --servername=SERVER --message "errata step03 fix" --schedule update
Loaded plugins: cpacman_yum, rhnplugin
Config time: 0.203
Yum Version: 3.2.29
Setting up Package Sacks
Looking for repo options for [rhel-x86_64-server-6]
Looking for repo options for [rhel-x86_64-server-optional-fastrack-6]
Looking for repo options for [rhel-x86_64-server-fastrack-6]
Looking for repo options for [rhel-x86_64-server-supplementary-6]
Looking for repo options for [rhel-x86_64-server-optional-6]
-=> Processing Server SERVER
pkgsack time: 3.641
rpmdb time: 0.000
Setting up Update Process
Updating Everything
Building updates object
up:Obs Init time: 0.256
up:simple updates time: 0.016
up:obs time: 0.004
up:condense time: 0.000
updates time: 0.587
Not Updating Package that is already updated: sudo.x86_64 0:1.7.4p5-5.el6
Error: Package tuple ('dhclient', 'x86_64', '12', '4.1.1', '19.P1.el6') could not be found in rpmdb
The workaround:
sudo yum -c /home/dimon/yum.conf -d5 --skip-broken --servername=SERVER
--message "errata step03 fix" --schedule
--dbpath=/var/lib/cpacman/servers/SERVER/rpmdb/ update
where the *important* bit is the line in 'yum.conf':
persistdir=/tmp/yum
which fools yum into believing that there is no cache.
another workaround would be
yum --setopt=persistdir=/tmp/yum --servername=x.foo.com --schedule update
which avoids changes in config file (doesn't fix the real problem though...)