Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am new to Linux and 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?

share|improve this question
1  
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. –  jordanm Sep 27 '12 at 22:20
1  
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. –  Ignacio Vazquez-Abrams Sep 28 '12 at 2:37

1 Answer 1

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|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.