compiling - What is the Fedora equivalent of the Debian build-essential package? - Unix & Linux Stack Exchange
Development tools C&C++ compilers
Curated Fedora Core 42 post-install notes - drivers, tweaks, tools, and fixes
How do I install kernel headers for fedora?
in the red hat family of linux distros, files that are needed to build kernel objects (modules) are located in the kernel-devel package. hence you need to do:
sudo dnf in kernel-devel
there's also kernel-headers but it's for people who want to build userspace programs that do system calls (basically all <linux/*.h>)
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
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.
i installed the "Development Tools" group on Fedora by this command " sudo dnf group install development-tools " and expected it to include the C++ compiler and everything needed for C++ development and C .
I remember installing it before on Fedora 42 and it worked fine, but after trying another distro and then coming back to Fedora, I installed it again and the compiler wasn’t there but i did not really remember the command.
Did the group change, or am I missing a command to get g++ and the rest of the C++ toolchain?