What is the Fedora equivalent of the Debian build-essential package?
Asked
Active
Viewed 1.9e+01k times
3 Answers
179
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
Andrey Semakin
- 103
- 4
user1295
- 1,941
- 2
- 13
- 4
-
5Better answer below for modern Fedora – Kirk Oct 29 '16 at 12:03
-
1`@development-tools` is not available on Fedora 32. – Aspiring Dev May 19 '20 at 22:12
-
@AspiringDev `@development-tools` _are_ available, `@development-libraries` aren’t. – Juraj Fiala Jun 25 '20 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 Jun 27 '20 at 02:12
-
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. – neosergio Aug 26 '20 at 00:42
-
`sudo dnf groupinstall "Development Tools" "Development Libraries"` brilliant. – Rahul Bali Nov 15 '20 at 16:59
-
Fedora 36 - `sudo dnf group install "C Development Tools and Libraries" "Development Tools"` works for me. – lqlarry Jun 23 '22 at 20:25
83
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,607
- 3
- 40
- 59
-
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
-
1I think the answer should be updated, since this is the better answer for modern versions of fedora. – Kirk Oct 29 '16 at 12:02
-
6I 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
12
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
Chadversary
- 349
- 2
- 7
-
8This does not actually answer the asked question but is none-the-less useful to know – Daniel S. Sterling Aug 27 '13 at 21:52