[Yum] specifying a version range to yum

Jay Buffington me at jaybuff.com
Mon Feb 4 21:27:11 UTC 2013


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


More information about the Yum mailing list