LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-18-2011, 11:23 AM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
How to install new kernel


There is news of new linux kernel 3.1.5 being available:

http://linux.softpedia.com/get/Syste...ble-1960.shtml

How can one install it in any running linux system?
 
Old 12-18-2011, 02:14 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Most distributions document the procedure to optimally integrate with their configuration and package management system. You can check the docs for your distribution, or post what distribution and release you're using and someone will likely hunt it down for you. There are also generic instructions for kernel installation, but be aware that using them on most modern desktop distributions can cause various issues.
 
Old 12-18-2011, 08:12 PM   #3
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
I was more interested in generic instructions, which I can apply to any distribution.
 
Old 12-18-2011, 09:07 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Quote:
Originally Posted by rng View Post
I was more interested in generic instructions, which I can apply to any distribution.
As I said above,
Quote:
There are also generic instructions for kernel installation, but be aware that using them on most modern desktop distributions can cause various issues.
Using the generic instructions will cause you problems. The kernel and related packages will not be added / tracked by the package management system. This can cause the kernel to be downgraded on the next boot. The boot partition will need to be manually managed. Any kernel modules built by akmods will not be automatically built. Backing out a kernel will be a manual process. You will lose any patches specific to your distribution, which may cause other problems. You will not be able to report any problems to your distribution.
 
Old 12-19-2011, 01:29 AM   #5
Sed_Awk
Member
 
Registered: Dec 2011
Location: USA
Distribution: Crux 2.7.1
Posts: 41

Rep: Reputation: 0
@ rng

You should upgrade packages and kernels using your distro's package manager as it is optimized for that distro and it's packages.

For example if you upgrade to a newer kernel manually, the nvidia or ati driver won't be compatible with the newer kernel and would cause video problems. You would need to upgrade the video drivers for the new kernel as well.

However, if you want to take a crack of compiling a kernel for practice try crux linux in a virtualbox. See my sig below for link

*** If this is your first time compiling a kernel be prepare to fail a few times. Compiling a kernel is not difficult, however configuring the .config is no picnic and a difference between a successful boot or a KERNEL PANIC ***

Last edited by Sed_Awk; 12-19-2011 at 02:12 AM.
 
Old 12-19-2011, 07:58 PM   #6
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Thanks for your responses. I realize it is not a simple task and I have decided to leave it to experts. I will be updating thru my distro's updating facility.

Last edited by rng; 12-19-2011 at 07:59 PM.
 
Old 12-19-2011, 08:42 PM   #7
Sed_Awk
Member
 
Registered: Dec 2011
Location: USA
Distribution: Crux 2.7.1
Posts: 41

Rep: Reputation: 0
Have you considered trying arch linux it is a rolling release distro and focus to be bleeding edge on the latest software. Not sure what is the latest kernel version is on arch though as I am using crux linux.

Last edited by Sed_Awk; 12-19-2011 at 08:46 PM.
 
Old 12-19-2011, 11:52 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The OP could also try Linux From Scratch, which would allow him to build not only the kernel but the whole OS from source . I've built a custom kernel several times on Slackware. Since Slack stays fairly vanilla, it's pretty easy to replace their kernel with a stock one (or at least it used to be; I switched to Arch some time ago). If you plan to rebuild the kernel on something like Fedora or SuSE, I'd suggest using the distro's kernel configuration file and doing a "make oldconfig" to preserve as much of the distro's old kernel configuration as possible. It's entirely possible to make your own kernel RPMs/DEBs, so your new kernel will be tracked by the package manager, but building a custom kernel isn't for the faint of heart (though it can be fun). In general, most critical fixes will be backported into the distro-supplied kernels, so there's fairly little reason to build your own, except as a learning experience, most of the time.
 
Old 12-20-2011, 07:50 AM   #9
Sed_Awk
Member
 
Registered: Dec 2011
Location: USA
Distribution: Crux 2.7.1
Posts: 41

Rep: Reputation: 0
I use make oldconfig and make silentoldconfig where appropriate.

make silentoldconfig works the same way as oldconfig, It configures the .config using an existing kernel's config file but it does not print/prompt anything to the screen, unless it needs to ask a question about a new configuration option. Usually, I accept the default option if I don't understand what the new feature does.

The thing I notice is crux linux doesn't use an initrd image nor there is a mkinitrd command to create one. So I had to compile in some modules into the kernel like the filesystem the root partition is on and some hard disk controllers modules like SCSI, SATA and ATA stuff.

LFS and Gentoo have their niche of linux users, but it takes to long to build as you need to compile everything. I don't have that patience

It would be great if all distros followed one universal way of installing a newer kernel, but has you say, distros have their own procedures when it comes to upgrading the kernel.

Last edited by Sed_Awk; 12-20-2011 at 10:20 AM.
 
Old 12-20-2011, 07:48 PM   #10
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Sed_Awk wrote:
Quote:
It would be great if all distros followed one universal way of installing a newer kernel
Absolutely.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] VirtualBox & The New 2.6.37.3 Kernel. (Solution: DKMS Required To Install VB Kernel Module) cwizardone Slackware 49 03-17-2011 06:42 PM
Trying to install ethernet adapter driver, not finding kernel-devel or kernel-headers oneFishtwoFish Red Hat 5 08-31-2010 06:24 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:41 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