LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-09-2008, 11:14 AM   #1
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 90

Rep: Reputation: 15
How to install new kernel on Fedora?


I've been trying to research on the Internet how to install an updated Linux kernel, leaving the old one intact.

Yes there are lots of advice out there. But I have a sense that I'm missing some fundamental steps in doing this.

So....dumb question... Should I be downloading all kernel*.rpm packages and just install them like any other RPM? I know that the kernel is different from the other modules.

I have a "possible LKM rootkit" on my FC6 notebook, says chkrootkit.

Thanks!

Tom D.
 
Old 02-09-2008, 12:36 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
yum update kernel

When you reboot you will get the little screen that says booting in X seconds. That is where you choose which kernel to boot to. The default is to boot to the newest kernel.

The only 100% way to be sure of a secure system after a breach is to do a fresh install. Other words you have no way of knowing what files the intruder could have changed. About 99% if Linux breaches occur becuase of weak passwords.
 
Old 02-09-2008, 05:07 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Rootkits are normally hidden in slack space.
Changing kernel probably won't remove it, as it can be anywhere in the file system. With forensics tools you can locate and remove it, possibly Sleuthkit.
 
Old 02-12-2008, 03:57 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Junior Hacker View Post
Rootkits are normally hidden in slack space.
Rootkits can hide themselves and whatever else they want to hide pretty much anywhere but no, they are not "normally" hidden in slack space.
 
Old 02-16-2008, 11:23 AM   #5
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lazlow View Post
yum update kernel.
I don't have a direct internet connection to this box. I'd have to download the RPMs and update. What I don't understand is what packages I need to download. In other words, I need to update almost manually.

Quote:
Originally Posted by lazlow View Post
The only 100% way to be sure of a secure system after a breach is to do a fresh install. Other words you have no way of knowing what files the intruder could have changed. About 99% if Linux breaches occur becuase of weak passwords.
You're probably right. I haven't seen anything suspicious in the user log but that wouldn't mean anything either.

Thanks for the help!

Tom D.
 
Old 02-16-2008, 12:03 PM   #6
MyHeartPumpsFreon
Member
 
Registered: Oct 2007
Location: The States, Florida
Distribution: Lonely Werewolf
Posts: 251

Rep: Reputation: 30
You can probably google the newest kernel. For F8 it's 2.6.23-107 or something like that. All you need is the RPM for it and install it with rpm -ivh kernel-2.6.23-107.rpm (use whatever the actual name of the RPM is there). Then it should uninstall the previous kernel and install the new one. Refer to the manual just make sure you use the correct switches.

There shouldn't be any dependencies for a new kernel, but generally you want to update everything when updating the kernel.

Brandon
 
Old 02-23-2008, 08:11 AM   #7
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MyHeartPumpsFreon View Post
.....Then it should uninstall the previous kernel and install the new one. Refer to the manual just make sure you use the correct switches.
One thing I want to do is to preserve the old kernel and be able to revert back to it if the new kernel barfs for some reason. I don't want to overwrite my old kernel. How would I accomplish this?

My understanding is either kernel can be launched just by selection from LILO or GRUB.

Is there a web page anywhere that contains this procedure? I tried looking for it but I probably didn't use the right keywords on Google. At least I would think this would be a common reference.

Tom D.
 
Old 03-15-2008, 06:19 AM   #8
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
yum update

Is there a special reason for installing specific kernels from RPM?

In a normal I would use yum to install the current kernel package and in case of need kernel-devel as well. Yum will always keep the previous kernel available within /boot, and if you want to keep even older kernels, than backup your /boot directory before updating kernels.

You also might want to have a look at /boot/grub/grub.conf to adjust the settings - most likely to define which kernel to startup at default.

Regards,
SIMP

Linux Archive

Last edited by simplicissimus; 04-02-2008 at 04:33 AM.
 
Old 03-16-2008, 05:18 PM   #9
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by simplicissimus View Post
Is there a special reason for installing specific kernels from RPM?

In a normal I would use yum to install the current kernel package and in case of need kernel-devel as well. Yum will always keep the previous kernel available within /boot, and if you want to keep even older kernels, than backup your /boot directory before updating kernels.
Well, I need specific RPM files because none of my Linux boxes have direct Internet access. Yum wouldn't do anything for me. I'd have to download the files of interest to my WinXP machine, transfer them to the Linux boxes via LAN, and run RPM manually.

Tom D.
 
Old 03-17-2008, 04:55 AM   #10
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
You must find the appropriate place to download new kernel packages from. Maybe you have already done so, otherwise the homepage of your distribution is where you should start. Or search on sites like rpmfind.net, rpm.pbone.net, etc.

Installing with RPM will not remove previous kernel versions when installing new ones, you can as such have all versions you want to keep.

Install like this (as root):
# rpm -Uvh <kernelpackage>

On RedHat/Fedora systems, and probably other distributions as well, a 'firstboot' flag is set after installing a kernel: if your new kernel fails to boot properly, than your next boot will use the previous kernel again.

This is done by switching the 'default=' value in /boot/grub/grub.conf between the index number of the new kernel and the previous one. Index numbering starts from 0 and refers to the list of kernels in the same file, which is something like:

Code:
title Fedora (2.6.24.3-12.fc8)
  root (hd0,0)
  kernel /vmlinuz-2.6.24.3-12.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
  initrd /initrd-2.6.24.3-12.fc8.img
You can set the 'default=' value yourself by editing the grub.conf file.

All of this assumes that GRUB is your bootloader...

Hope this helps,
Regards,
SIMP
 
Old 03-17-2008, 06:42 AM   #11
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
Code:
Install like this (as root):
# rpm -Uvh <kernelpackage>
Don't do this if you want old kernel available, just in case newer one won't work.

This command given above will UPGRADE the existing kernel.

You may use -ivh switch in place of -Uvh. It will install a new kernel and change the grub loader making the newer kernel as default.
 
Old 03-18-2008, 06:11 AM   #12
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
rpm -ivh

Code:
You may use  -ivh  switch in place of -Uvh.
Yes, that's true. Sorry for the mix-up.

I use yum for kernel upgrading and yum takes care of keeping the older kernel available.

Sincerely,
SIMP
 
Old 03-23-2008, 06:15 PM   #13
The_Trooper
Member
 
Registered: Jan 2008
Distribution: Fedora Core 9
Posts: 33

Rep: Reputation: 15
Quote:
Originally Posted by Tom Douglas View Post
Well, I need specific RPM files because none of my Linux boxes have direct Internet access. Yum wouldn't do anything for me. I'd have to download the files of interest to my WinXP machine, transfer them to the Linux boxes via LAN, and run RPM manually.

Tom D.
Just an off beat question but why can't you just connect your Linux box to the internet?
 
Old 03-23-2008, 10:53 PM   #14
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
You can use the " yum localinstall" command. Have a look at "man yum".

Save yourself a lot of headaches and pick up a cheap router and just hook your linux boxes to the internet. Even if it is just plugged in for the updates (and unplugged otherwise), it will be well worth the $20 you will spend on the router.
 
Old 04-02-2008, 05:38 AM   #15
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by The_Trooper View Post
Just an off beat question but why can't you just connect your Linux box to the internet?
I use dial-up with Netscape. They have ISP software for Windows but not Linux. (Hmmm -- I haven't checked lately -- perhaps I should take another glance at their website.)

However I am looking at cable Internet down the road when I get the LAN and WLAN security nailed down.

Tom D.
 
  


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
new to fedora (and linux) -- need kernel install help pls!! alabamaman Fedora 5 07-22-2007 06:27 PM
Help Me IPW2100 install on Fedora 3 Kernel 2.6.15.6 nestyc Linux - Networking 3 04-01-2006 07:36 PM
Fedora Core 3 Install Kernel Source Mirag3 Fedora 1 06-17-2005 11:18 PM
Custom kernel for Fedora 3 install godhugh Fedora - Installation 0 01-13-2005 02:32 PM
How to install Kernel 2.6.7 for Fedora Core 1? subaruwrx Fedora 5 07-14-2004 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration