Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, This maybe a somewhat elementary question.. how do i use apt-get to install the header file for for my kernel? Thanks...
  1. #1
    mss
    mss is offline
    Just Joined! mss's Avatar
    Join Date
    Jan 2006
    Posts
    45

    Kernel source and the version



    Hi,
    This maybe a somewhat elementary question..

    how do i use apt-get to install the header file for for my kernel?

    Thanks

  2. #2
    mss
    mss is offline
    Just Joined! mss's Avatar
    Join Date
    Jan 2006
    Posts
    45

    Cool

    nm - I got it.
    Code:
    apt-get install kernel-headers<kernel version>
    and the kernel version can be found by
    Code:
    uname -r

  3. #3
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    I think they're calling it linux-headers now. And you can have the shell put the right version in for you, like so:
    Code:
    apt-get install linux-headers-`uname -r`
    Note that those are back-ticks around uname -r (the ~ key). The shell will treat the contents between the back-ticks as a command, and replace it with the result of the command (in this case, the name of your kernel).
    Stand up and be counted as a Linux user!

  4. #4
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    not in sarge (they are still kernel)
    Brilliant Mediocrity - Making Failure Look Good

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •