LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2005, 11:24 AM   #1
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Rep: Reputation: 15
How to Install kernel (RPM)


Hello,

I am using CentOS 4.1. I have downloaded kernel-2.6.9-22.EL.rpm. I am currently using kernel-2.6.9-11.EL.

Is installing this new kernel as simple as:

rpm -ivf kernel-2.6.9-22.EL.rpm? What other steps are involved? I would think that there should be a "make xconfig" involved, make dep, make bzimage, create symbolic links, edit grub. etc , but nothing I have read about installing kernel rpms mention this as part of the process. Also, will installing the rpm create the usr/src/linux-2.blah directory tree? This is the only reason I am doing this BTW. My distro did not include the kernel source, nor did it include the /usr/src/linux-2.blah directory tree which I need in order to install a custom made module which make depends on. Any help is always appreciated!

Last edited by iansoundz; 12-05-2005 at 11:25 AM.
 
Old 12-05-2005, 11:47 AM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
There should be two (or more) packages based on this kernel. The binary package should have an i#86 (i386,i586, i686) prior to the .rpm extension (smp will be in the name for multiprocessor binaries), and the source would be in a package labeled kernel-source-<version>.rpm. To install the binary, you should just be able to type "rpm -i kernel-<version>.rpm". This will install the new kernel without removing the existing one (always a good idea). Same with the kernel-source package.
 
Old 12-05-2005, 11:51 AM   #3
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
So doing this will upgrade the kernel, keeping the same config as used with my previous kernel? Will this create the /usr/src/linux-2.blah directory tree?
 
Old 12-05-2005, 11:54 AM   #4
mebrelith
Member
 
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Blog Entries: 1

Rep: Reputation: 30
Actually, if I my memory aint playin tricks at me, the proper syntax would be rpm -Uvh kernel*
 
Old 12-05-2005, 12:00 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,790

Rep: Reputation: 292Reputation: 292Reputation: 292
"I would think that there should be a "make xconfig" involved, make dep, make bzimage"

Those steps were all done by the person who created the binary kernel rpm package.

"will installing the rpm create the usr/src/linux-2.blah directory tree?"

No. A different rpm package installs the kernel source.

"What other steps are involved?" "edit grub. etc , but nothing I have read about installing kernel rpms mention this as part of the process."

Different distributions handle kernel updates differently. You should check the documentation from where you downloaded kernel-2.6.9-22.EL.rpm. I would expect that kernel rpm package probably does not edit grub.


------------------
Steve Stites
 
Old 12-05-2005, 12:06 PM   #6
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
You DO NOT want to do rpm -Uvh with a kernel. That essentially removes the currently running kernel and replaces it with the new kernel, often resulting in an unstable system. Installing the new kernel with rpm -i will add the new kernel to your environment and (if built properly) add it to your boot configuration. If you are using lilo, you will probably want to rerun lilo to add it to your boot menu (the config file should have already been updated by the rpm). Grub will automatically pick up changes made to it's menu on the next boot. This way when you reboot, if there is a problem, you can always reboot to the previous kernel and fix it.

Here's a link on installing a kernel rpm with more details on why not to use -Uvh: http://www.yolinux.com/TUTORIALS/Lin...pmInstall.html
 
Old 12-05-2005, 12:07 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
When you install new kernel on Redhat/Fedora based distros, the bootloader is automatically configured to boot the new kernel. The old kernel is not uninstalled, you need to do this yourself. When you uninstall the old kernel its grub entry is automatically removed.
 
Old 12-05-2005, 12:48 PM   #8
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Original Poster
Rep: Reputation: 15
Jailbait,

You said "No. A different rpm package installs the kernel source." Which package would this be??
 
Old 12-05-2005, 01:04 PM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Quote:
Originally Posted by iansoundz
Jailbait,

You said "No. A different rpm package installs the kernel source." Which package would this be??
The kernel-devel package.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Suse 9.1 Kernel source (2.6.5-7.95) rpm wont install shorebreak Linux - Software 2 07-26-2004 07:18 PM
How to install kernel-source-2.4.22-10mdk.i586.rpm jazzeduppenguin Mandriva 2 03-10-2004 06:52 AM
what is the rpm parameter for kernel install baronlynx Linux - Newbie 2 02-24-2004 10:34 AM
Ok, dumb question. If I install a Mandrake kernel RPM, where does it install to? Kramer Linux - General 6 01-13-2004 10:39 PM
Arjan's 2.6 kernel in RPM ...how to install? svarreby Fedora 5 01-13-2004 07:33 AM


All times are GMT -5. The time now is 08:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration