A yum question

m.roth at 5-cent.us m.roth at 5-cent.us
Tue Nov 4 20:49:35 UTC 2014


Hi, folks.

   Quiet on this list.... Here's a yum question. On some of my servers, in
he yum.conf, I've got excludes set up. Now, when I do a full update, on
the command line, I do a disableexcludes=all. The man page for yum says
my only options are all, main, or repo. One of the excludes, which is
on a few servers, I really don't ever want to update unless I do it
manually. The other excludes are for things like video drivers,
kernels, httpd... and those get updated after scheduling updates with
the system owners.

   I'm currently working on a script that would assure that the updates I
did earlier in the week, or the week before, are what would be updated
on the production machines, and *NOT* anything newer, so that prod
matches what's been tested in test.

   So, is there a way to override the excludes in yum.conf, *except* for
the one package that I don't want updated? I really don't want to do
rpm -qa | grep -v <package> > /tmp/current, then yum update $(cat
/tmp/current). I *support* I could do yum -n update | grep -v <package>
> /tmp/update, and feed that to yum... but if there's a cleaner, more
elegant way to do it, I'd appreciate knowing it.

        mark

* If you're wonder, it's apcupsd, and as I've got a number of servers on
each UPS, I really don't want things to shutdown on a second or two's
power outage, so I have to edit a file to change /sbin/shutdown to
/bin/false....




More information about the redhat-list mailing list