How do I install a src rpm with dnf?
Whenever I try to install a src rpm with dnf, I get an error message that says "Error: Will not install a source rpm package".
For example:
# dnf info gcc.src
Last metadata expiration check: 1:52:25 ago on Sat Apr 30 11:43:51 2016.
Available Packages
Name : gcc
Arch : src
Epoch : 0
Version : 5.1.1
Release : 4.fc23
Size : 78 M
Repo : fedora-source
Summary : Various compilers (C, C++, Objective-C, Java, ...)
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and
: BSD
Description : The gcc package contains the GNU Compiler Collection version 5.
: You'll need this package in order to compile C code.
# dnf install gcc.src
Last metadata expiration check: 1:53:05 ago on Sat Apr 30 11:43:51 2016.
Error: Will not install a source rpm package (gcc-5.1.1-4.fc23.src).
I'm on Fedora 23 and have dnf 1.1.8.
I'm wondering what I might be doing wrong. (Since Fedora 23 I haven't been able to use yum; calls to yum just turn into invocations of dnf.)
Surely it cannot be that dnf does not permit the user to have the sources?