Fedora – Equivalent of Debian build-essential Package
compilingfedorapackaging
What is the Fedora equivalent of the Debian build-essential package?
Best Answer
The closest equivalent would probably be to install the below packages:
sudo dnf install make automake gcc gcc-c++ kernel-devel
However, if you don't care about exact equivalence and are ok with pulling in a lot of packages you can install all the development tools and libraries with the below command.
You can also use dnf provides /bin/ls to get a list of all available repository packages that will provide the file:
# dnf provides /bin/ls
Last metadata expiration check: 0:17:06 ago on Tue Jun 27 18:04:08 2017.
coreutils-8.25-17.fc25.x86_64 : A set of basic GNU tools commonly used in shell scripts
Repo : @System
coreutils-8.25-17.fc25.x86_64 : A set of basic GNU tools commonly used in shell scripts
Repo : updates
coreutils-8.25-14.fc25.x86_64 : A set of basic GNU tools commonly used in shell scripts
Repo : fedora
The Fedora PkgDB does have a search syntax so you could search for builds with /usr/bin/g++ in it by searching for file:/usr/bin/g++ and click Builds. Click on the blue (i) for more details. The GCC package has several sub-packages, as described in the gcc.spec file you showed above, which has added to the confusion.
Best Answer
The closest equivalent would probably be to install the below packages:
However, if you don't care about exact equivalence and are ok with pulling in a lot of packages you can install all the development tools and libraries with the below command.
On Fedora 32+ you will need the following because
@development-tools
and@development-libraries
won't work anymore: