CentOS 5 Kernel Source

Posted on 2007-10-05
Last Modified: 2013-12-16
I am installing vmware on CentOS 5.

While running, the server asks what is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

I did not install the kernel from source so I do not have the source files, how do I download the source files that are needed to put in /usr/src/linux/include?

How do I know which version of the source files I need?
Question by:gpabst
    LVL 9

    Accepted Solution

    you can find your kernel version by
    uname -r

    and then you can search your repository by apt-cache search linux-source

    find out the package name that relates to your kernel source and install it using
    apt-get install linux-source-x.x.xx

    Also search and install linux-headers
    LVL 14

    Assisted Solution

    RedHat/CentOS 5 don't have apt-get or the kernel-source RPMs.

    You can get development info for the kernel from the kernel-devel package "yum install kernel-devel" which is all you need for vmware - you don't need the entire source.

    On a base load of CentOS5 you need to install the following to run - you may already have these if you did a normal install (I strip my vmware server machines as bare as I can with a custom install), but it won't hurt to run this:
    "yum install glibc.x84_64 libX11 libICE libXtst libXext libXt libXrender kernel-devel"

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. Once you open the link you will see …
    Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
    Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now