|
Yep, this looks like an oversight based on the fix for
PUP-5025
which was meant as an update for epoch handling using DNF, which seems to handle epochs differently when specifying versions to install.
Examples:
In Fedora 22, using DNF, the current version of the tomcat package is 1:7.0.59-4.fc22. When installing this specific version with DNF, you are required to provide the epoch via the commandline:
root@sq9v8iq916gbork ~]# dnf install tomcat-1:7.0.59-4.fc22
|
Last metadata expiration check performed 1:54:33 ago on Mon Nov 30 11:40:05 2015.
|
...
|
tomcat noarch 1:7.0.59-4.fc22 osmirror 91 k
|
...
|
Transaction Summary
|
=====================================================================================================================================================================================
|
Install 31 Packages
|
|
Total download size: 51 M
|
Installed size: 155 M
|
Is this ok [y/N]:
|
If the epoch is not specified, DNF errors out:
[root@sq9v8iq916gbork ~]# dnf install tomcat-7.0.59-4.fc22
|
Last metadata expiration check performed 1:55:27 ago on Mon Nov 30 11:40:05 2015.
|
No package tomcat-7.0.59-4.fc22 available.
|
Error: no package matched: tomcat-7.0.59-4.fc22
|
In Yum, you can also specify an epoch when installing a package, but when doing so you are also required to specify the package arch, as shown in Yum's documentation:
A package can be referred to for install, update, remove, list, info etc with any of the following as well as globs of any of the following:
|
name
|
|
name.arch
|
name-ver
|
name-ver-rel
|
name-ver-rel.arch
|
name-epoch:ver-rel.arch
|
epoch:name-ver-rel.arch
|
When specifying an epoch, puppet tries to install logstash-1:2.1.0-1, when it needs to be specifying logstash-1:2.1.0-1.noarch.
Another difference between Yum and DNF is that specifying the epoch is not required when specifying a version in Yum. For example, the following works in Yum:
[root@n37kmcqwgl5yaiw ~]# yum install logstash-2.1.0-1 # No epoch specified, but Yum automatically grabs the newest one
|
Installing:
|
logstash noarch 1:2.1.0-1 logstash-2.1 71 M
|
but the following does not work in DNF:
[root@sq9v8iq916gbork ~]# dnf install tomcat-7.0.59-4.fc22 # DNF will not automatically resolve the newest epoch for us
|
|