LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-07-2006, 12:46 AM   #1
csaju
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
How to install kernel.src.rpm


Hello LEs,

I installed RHEL ES 4.0 2.6.9-5 and i want to upgrade the kernel to 2.6.9-11, for that i have downloaded the kernel-2.6.9-11.EL.src.rpm. i want to know how to install this src rpm and upgrade the kernel. please give me detailed procedure.

C Saju
 
Old 07-07-2006, 02:46 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Src rpm is a source rpm, i.e. it includes the kernel source code. If you just want a stock kernel upgrade, download a normal (non-src) rpm file and install it as you would install any rpm package.

The other thing is, if you want to compile the new kernel from source yourself, perhaps add or remove stuff to/from it and just play around. Then you'll download the src rpm, install it as you would install a normal package, after which you should have a new directory under /usr/src (in this case I guess you'd have /usr/src/linux-2.6.9-11). Then you just cd into that directory, read the README file, do a make menuconfig (or oldconfig or xconfig or something instead, I just like the menuconfig), alter stuff if you like and then do make. That's how you get a kernel and the rest of the needed files (well that's how I got them).

If you need any additional packages, rpm should tell you about it right?

- Ordinary rpms are binary stuff, ready-to-go
- Src rpms include program source code, which is extracted to a certain place (/usr/src for example), which you can then compile by yourself

EDIT: by "install it as you would install a normal package" I mean that you either double-click the rpm file icon in a graphical environment that knows what to do about it (KDE or Gnome for example), or then just open a console, become root issuing su command or use sudo command in the beginning of the rpm-command line, and then issue the command rpm -iv kernel-2.6.9-11.EL.src.rpm (or some other .rpm package). If I didn't remember correctly and you get an error trying to use the rpm command, then read man rpm.

Last edited by b0uncer; 07-07-2006 at 02:49 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting kernel src.rpm acidblue Fedora 3 12-30-2005 10:09 PM
Kernel SRC RPM conn-fused Linux - Software 2 03-22-2005 04:48 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM
kernel src rpm zephyr Linux - Newbie 1 08-30-2002 11:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration