Upgrade Linux kernel howto
Q. How do I upgrade Linux kernel? I would like to upgrade kernel w/o compiling from source code i.e. binary upgrade. How do I perform the actual upgrade of the kernel in Linux?
A. You need to compile kernel only if
=> You need custom made kernel for specific task such as embedded kernel
=> You need to apply specific patch to Linux
Upgrade of the kernel in Red Hat enterprise Linux version <= 4.x
If your system is registered with Red Hat Network (RHN), then you can use the up2date command as follows:
# up2date -f kernel
For SMP kernel (multi core or multiple CPU) use command:
# up2date -f kernel-smp
Upgrade of the kernel in Fedora Linux / CentOS / RHEL 5
Use yum command to upgrade kernel:
# yum update kernel
If you have downloaded RPM file use rpm command:
# rpm -ivh kernel*
Upgrade of the kernel in Debian or Ubuntu Linux
Use apt-get command. First find your kernel version:
$ uname -r
Next find available kernel images:
$ apt-cache search kernel-image
Now install kernel by explicitly specifying version number:
# apt-get install kernel-image-x.x.x-xx
OR
$ sudo apt-get install kernel-image-x.x.x-xx
Upgrade of the kernel in Gentoo Linux
=> Please refer official Gentoo Linux Kernel Upgrade Guide
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- How do I upgrade the kernel in Linux without compiling from source code?
- How to find which kernel version is installed on my Linux system
- Ubuntu Linux: Upgrade Linux Kernel
- Enable Linux dual core CPU support for my Server
- Upgrade WHM / cPanel Linux server to EDGE release
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: linux kernel updates, linux source code, red hat kernel update, red hat kernel upgrade, update linux kernel, upgrade debian kernel, upgrade gentoo kernel, upgrade linux kernal, upgrade linux kernel, upgrade linux kernel 2.6, upgrade linux kernel ubuntu, upgrading linux kernel



April 19th, 2007 at 4:48 pm
Hi,
I have upgrade Redhat Enterprise Linux 4 update 4 to update 7 .. Could you please tell me
procedure to upgrade..
Thanks in advance.
May 1st, 2007 at 3:52 pm
I need to upgrade a server from SLES-7 to SLES-10. I have transferred the users Id’s, groups, directories and files, plus the (passwd, shadow etc). The IP, network names etc. remain the same. Users can sign in and access their files. I have one user who uses “host key authentication” to login, FTP and he is failing. Does he have to rebuild the private and public keys or did I miss a file? What piece of physical server information does “host key authentication” use to tell it that it is on the original server?
May 1st, 2007 at 5:13 pm
Host identification get changed when you make changes to system like reinstall sshd / or server software or change in IP address. Ask your user to rebuild the private and public keys.