'Yum lists a package as available but claims it is not available when downgrading

I run the following in a RHEL7 system:

yum --showduplicates list code

I get this output:

Installed Packages
code.x86_64                                                                                  1.65.1-1646706566.el7                                                                                   @code
Available Packages
code.x86_64                                                                                  1.9.1-1486597190.el7                                                                                    code 
code.x86_64                                                                                  1.10.0-1488387854.el7                                                                                   code 
code.x86_64                                                                                  1.10.1-1488415350.el7                                                                                   code 
code.x86_64                                                                                  1.10.2-1488981323.el7                                                                                   code 
code.x86_64                                                                                  1.11.0-1491426968.el7                                                                                   code 
code.x86_64                                                                                  1.11.1-1491487117.el7                                                                                   code
...

So I attempt to downgrade to one of these versions.

yum downgrade code 1.10.0-1488387854.el7

I get this output:

No package 1.10.0-1488387854.el7 available
...

How can I downgrade to an 'available' version?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source