What is the Fedora equivalent of the Debian build-essential package?
4 Answers
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.
sudo dnf groupinstall "Development Tools" "Development Libraries" On Fedora version older than 32 you will need the following:
sudo dnf groupinstall @development-tools @development-libraries - 6Better answer below for modern FedoraKirk– Kirk2016-10-29 12:03:17 +00:00Commented Oct 29, 2016 at 12:03
- 1
@development-toolsis not available on Fedora 32.Aspiring Dev– Aspiring Dev2020-05-19 22:12:35 +00:00Commented May 19, 2020 at 22:12 - @AspiringDev
@development-toolsare available,@development-librariesaren’t.Juraj Fiala– Juraj Fiala2020-06-25 14:33:15 +00:00Commented Jun 25, 2020 at 14:33 - 1@JurajFiala not on Fedora 32 at least:
Module or Group '@development-tools' is not available. Error: Nothing to do.Aspiring Dev– Aspiring Dev2020-06-27 02:12:00 +00:00Commented Jun 27, 2020 at 2:12 - 2Fedora 36 -
sudo dnf group install "C Development Tools and Libraries" "Development Tools"works for me.lqlarry– lqlarry2022-06-23 20:25:47 +00:00Commented Jun 23, 2022 at 20:25
For Fedora 23 and up to somewhere near Fedora 32. Also works in Fedora 38.
dnf install @development-tools
Installing gcc and g++ might also be needed.
- For what it's worth, this is a literal equivalent to
build-essential linux-headers-generic; it only installs what's needed to compile software (like gcc and make) as well as kernel headers. Thanks!andlabs– andlabs2016-04-26 15:52:16 +00:00Commented Apr 26, 2016 at 15:52 - My mistake;
linux-headers-genericalso requires Fedora packagelinux-devel.andlabs– andlabs2016-04-26 18:38:07 +00:00Commented Apr 26, 2016 at 18:38 - 1I think the answer should be updated, since this is the better answer for modern versions of fedora.Kirk– Kirk2016-10-29 12:02:48 +00:00Commented Oct 29, 2016 at 12:02
- 6I had to run
sudo dnf group install "C Development Tools and Libraries"davidtbernal– davidtbernal2016-11-06 21:29:05 +00:00Commented Nov 6, 2016 at 21:29 - 2
@development-toolsdoesn't seem to includegcc-c++, so I also had to install the C Development group as mentioned by @davidtbernaljocull– jocull2019-04-30 19:20:49 +00:00Commented Apr 30, 2019 at 19:20
For Fedora 40+ it's:
sudo dnf group install c-development development-tools - 4Thank you for this. And for anyone else, you can use the command 'dnf group list' to list the available package groups for the specific version of Fedora you're using.Jim Fischer– Jim Fischer2024-12-18 03:55:37 +00:00Commented Dec 18, 2024 at 3:55
On dnf5, including both RHEL and Fedora, it should be
sudo dnf install @c-development @development-tools Hope it helps.
- This is the correct answer for Fedora 42balupton– balupton2025-11-20 16:15:52 +00:00Commented 2 days ago