Why do I need to install -devel packages?
7,568
Normally a package will contain binaries, libraries, and other resources, so that programs linked against those libraries can run.
But when you need to build a package, header files are required normally, in this case, you install theose -devel packages to supply the desired header file.
Try to learn more about C/C++ build mechanism to help you understand this better.
Related videos on Youtube
Author by
Bananza
Updated on September 18, 2022Comments
-
Bananza over 1 year
I wonder why many times when I install package with
yum
I need to installpackage-devel.i386
rather thanpackage.i386
. What is the difference between them?-
jordanm over 11 yearsIn your example
package
would contain files needed to run programs that use the library.package-devel
would contain files needed to compile programs that use the library. -
Ignacio Vazquez-Abrams over 11 yearsYou're going to need to be a little more specific. There may be valid reasons beyond "to build stuff", but we can't tell you with only the little information you've provided.
-