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

168,901

Solution 1

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

Solution 2

For Fedora 23 and up to somewhere near Fedora 32:

dnf install @development-tools

Installing gcc and g++ might also be needed.

Solution 3

The command is yum-builddep. It is included in the yum-utils package.

sudo yum install yum-utils
sudo yum-builddep $the_pkg_you_want_to_build

Solution 4

Enable block_dump logging of what processes are doing block read/write operations:

echo 1 > /proc/sys/vm/block_dump
tail -f /var/log/syslog

when done, disable the tracing so you don't spam your log files:

echo 0 > /proc/sys/vm/block_dump
Share:
168,901

Related videos on Youtube

Steve Burdine
Author by

Steve Burdine

I have been using Linux for four years now, working on expanding my knowledge about Linux. Into punk rock, riding bikes and still love LP's.

Updated on September 17, 2022

Comments

  • Steve Burdine
    Steve Burdine almost 2 years

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

  • Daniel S. Sterling
    Daniel S. Sterling almost 11 years
    This does not actually answer the asked question but is none-the-less useful to know
  • andlabs
    andlabs about 8 years
    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!
  • Kirk
    Kirk over 7 years
    I think the answer should be updated, since this is the better answer for modern versions of fedora.
  • Kirk
    Kirk over 7 years
    Better answer below for modern Fedora
  • davidtbernal
    davidtbernal over 7 years
    I had to run sudo dnf group install "C Development Tools and Libraries"
  • Peng
    Peng about 5 years
    @development-tools doesn't seem to include gcc-c++, so I also had to install the C Development group as mentioned by @davidtbernal
  • Aspiring Dev
    Aspiring Dev about 4 years
    @development-tools is not available on Fedora 32.
  • Karl Studnik
    Karl Studnik about 4 years
    @AspiringDev @development-tools are available, @development-libraries aren’t.
  • Aspiring Dev
    Aspiring Dev about 4 years
    @JurajFiala not on Fedora 32 at least: Module or Group '@development-tools' is not available. Error: Nothing to do.
  • neosergio
    neosergio almost 4 years
    I confirm @development-tools is not available: Last metadata expiration check: 0:01:26 ago on Tue 25 Aug 2020 07:38:48 PM -05. Module or Group '@development-tools' is not available. Error: Nothing to do.
  • Rahul Bali
    Rahul Bali over 3 years
    sudo dnf groupinstall "Development Tools" "Development Libraries" brilliant.
  • Admin
    Admin about 2 years
    Fedora 36 - sudo dnf group install "C Development Tools and Libraries" "Development Tools" works for me.