Tuesday, August 7, 2007

kernel devel headers install howto

How to install kernel devel headers? via yum? via DVD? via DVD ISO image? via FTP/HTTP?
How to update kernel and kernel headers?
How to verify kernel and kernel header package?

There are lots of things we can do with linux. One of them is to create driver or network modules and makefiles needed for this kind of compilation.

One major requirement in doing these things is to have kernel development header package. This rpm package can be easily installed from installer DVD, ISO image file, via yum, via HTTP/FTP downloads from RPM site.

Here's how to do it.

Identify your system architecture first. By doing so

# uname -m

You'll get the build type of your CPU. Remember this build type.

Next is to verify if the kernel header RPM package is presently installed by doing so:

# rpm -qa kernel-devel*



INSTALL VIA YUM:

If this command does not give you result. Then proceed to yum install it

# yum -y install kernel-devel

The above will download kernel-devel from yum repos.


INSTALL VIA DVD or ISO IMAGE :
If you are installing from DVD CD, follow this step

Mount the DVD ISO image file

# mount -o loop -t iso9660 F7.ISO /F7

or if you prefer to mount the Fedora DVD disk

# mount /dev/cdrom /mnt/cdrom

and cd to 'Fedora' folder like so

# cd /your-mounted-device
# cd Fedora/
# ls -la kernel-devel*

Choose from the one that matches your build type and rpm install it by doing so

# rpm -qa kernel-devel-sample.rpm


INSTALL VIA HTTP/FTP:

Alternatively, there are kernel header rpm package available from the following

1. from linux distro site.
For Fedora 7, you could choose from one of nearest mirror from fedora site here.
2. from RPMFind
3. from RPMSeek


UPDATE KERNEL HEADER PACKAGE:

# yum -y update kernel-devel

This would automatically install updated kernel as well as kernel headers for you if you wish to update to latest kernel version.

There is no need for restart. That is all and you are ready.

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy