specifying a version range to yum

Jay Buffington <[email protected]> Mon, 4 Feb 2013 13:27:11 -0800
Newsgroups gmane.linux.rpm.yum
Message-ID <CAGezO6F9qXtqRO_LrjZBtN-fp5RyCrSdmuHtT9K9ti8jgcTKAA@mail.gmail.com>
Hi,

I know I can give yum a version requirement.   For example, this gives
me foo at a version 0.7.8 or newer, which is just what I want:

$ yum install 'foo >= 0.7.8'

But say I want to be able to specify a max and a min at the same time.
 Something like this:

$ sudo yum install 'foo <= 0.7.9, >= 0.7.8'

Is there any way I can give yum a range of versions that satisfy the
package version I want?  If not on the command line could I do it
directly interfacing with the python libraries?

Thanks,
Jay