180

What is the Fedora equivalent of the Debian build-essential package?

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255

2 Answers2

190

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
user1295
  • 2,051
88

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.

Alexander
  • 9,850
  • 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 Apr 26 '16 at 15:52
  • My mistake; linux-headers-generic also requires Fedora package linux-devel. – andlabs Apr 26 '16 at 18:38
  • 1
    I think the answer should be updated, since this is the better answer for modern versions of fedora. – Kirk Oct 29 '16 at 12:02
  • 6
    I had to run sudo dnf group install "C Development Tools and Libraries" – davidtbernal Nov 06 '16 at 21:29
  • 2
    @development-tools doesn't seem to include gcc-c++, so I also had to install the C Development group as mentioned by @davidtbernal – jocull Apr 30 '19 at 19:20