Re: specifying a version range to yum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jay Buffington <me@xxxxxxxxxxx> writes:

> 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'

 There is no command that would accept that atm. ... in theory you
could write one as a plugin, however this will almost certainly do the
same thing:

sudo yum install 'foo <= 0.7.9'


...because yum chooses the highest version available.

> 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?

 With the python API you can pretty much do anything, as at worst you
can get a list of all the packages with a given name and then filter
them yourself and ask yum "install this package".

-- 
James Antill -- james@xxxxxxx
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux