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.

Share:
7,568

Related videos on Youtube

Bananza
Author by

Bananza

Updated on September 18, 2022

Comments

  • Bananza
    Bananza over 1 year

    I wonder why many times when I install package with yum I need to install package-devel.i386 rather than package.i386. What is the difference between them?

    • jordanm
      jordanm over 11 years
      In 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
      Ignacio Vazquez-Abrams over 11 years
      You'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.