How to download kernel source?

Discussion in 'General' started by tbote, Jun 1, 2009.

  1. tbote

    Joined:
    Feb 17, 2009
    Messages:
    98
    Likes Received:
    0
    Hi

    I've just download Elastix 1.5.2-2 but need to recompile for use Openbox B400P. I need the kernel source but don't know how to download it (i'm linux newbie).

    I've try yum install kernel-devel, that's ok, but yum install Kernel-headers does not work.

    I've read this http://www.cyberciti.biz/faq/rhel5-inst ... urce-code/ but when I try to compile mISDN, it says that I dont' have the kernel source.

    Is there any guide to download the source? Just the CentOS kernel.

    Regards
     
  2. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
  3. tbote

    Joined:
    Feb 17, 2009
    Messages:
    98
    Likes Received:
    0
    yum install kernel-headers reports:

    Requested dep: kernel-headers is provided by installed package
    Nothing to do

    but when I try to recompile dahdi it ask me for the kernel sources.

    :huh:
     
  4. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    I was always under the impression that dahdi compiled with just the kernel-headers and kernel-devel rpms though.

    If not, you could google for the output of:

    echo "kernel-`uname -r`.src.rpm"

    or

    rpm -Uhv ftp://ftp.pbone.net/mirror/ftp.centos.o ... MS/kernel-`uname -r`.src.rpm

    if you like one liners, this will download and install.
     
  5. tbote

    Joined:
    Feb 17, 2009
    Messages:
    98
    Likes Received:
    0
    Solved.

    Really don't know how, just reinstalled Elastix, try again to recompile Dahdi, and now works without errors :blink:
     

Share This Page