Description of problem:
The afaics only reliable way to get the kernel-devel package for the kernel variant (stock, PAE, debug, ...) you are running is a command like this:
yum install "kernel-devel-uname-r = $(uname -r)"
But that does not work with dnf:
[thl@thl-t420 ~]$ LC_ALL=C sudo dnf install "kernel-devel-uname-r = 3.12.8-300.fc20.x86_64"
No package kernel-devel-uname-r = 3.12.8-300.fc20.x86_64 available.
Error: Nothing to do.
[thl@thl-t420 ~]$ LC_ALL=C sudo yum install "kernel-devel-uname-r = 3.12.8-300.fc20.x86_64"
Loaded plugins: langpacks, refresh-packagekit
--> Running transaction check
---> Package kernel-devel.x86_64 0:3.12.8-300.fc20 will be installed
--> Finished Dependency Resolution
Package Arch Version Repository Size
kernel-devel x86_64 3.12.8-300.fc20 updates-testing 8.5 M
Install 1 Package
Total download size: 8.5 M
Installed size: 32 M
Is this ok [y/d/N]: n
Exiting on user command
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2014-01-18.12-44.LtIaEC.yumtx
Version-Release number of selected component (if applicable):
Quote from a earlier IRC-Discussion in #yum:
(13:51:50) knurd: is it a known #dnf limitation that ' dnf install "kernel-devel-uname-r = 3.12.6-300.fc20.x86_64" ' doesn't work (in F20; yes, dnf can see that package), or is that worth reporting a bug?
(13:53:18) knurd: s/reopening/opening/
(14:01:59) akozumpl: knurd: that should work, open a bug and we will take a look
(16:05:43) geppetto: Pretty sure knurd's problem is that dnf doesn't parse "dnf update foo=bah"
(16:09:03) geppetto: Dito. install
As discussed, this is a real bug/missing function. People jut don't use this functionality often enough for us to find out earlier. We will fix this.
Fixed upstream by 7613c16.
dnf-0.4.13-2.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.13-2.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-0.4.13-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.