If there are two (or more) versions of a given RPM available in a YUM repository, how can I instruct
yum to install the version I want?
Looking through the Koji build service I notice that there are several versions.
To see what particular versions are available to you via yum you can use the
As far as installing a particular version? You can append the version info to the name of the package like so:
For example in this case if I wanted to install the older version, 2.4.6-6 I'd do the following:
You can also include the release info when specifying a package. In this case since I'm dealing with Fedora 20 (F20) the release info would be "fc20", and the architecture info too.
If you're ever unsure that you're constructing the arguments right you can consult with
downloading & installing
You can also use one of the following options to download a particular RPM from the web, and then use
And then install it like so:
What if I want to download everything that package X requires?
Notice it's doing a dependency check, and then downloading the missing pieces. See my answer that covers it in more details here: How to download a file from repo, and install it later w/o internet connection?.
Another option, you can download