Server Administration Forum Index Server Administration
Discuss about Windows, Linux, FreeBSD servers.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HOW-TO: Upgrading Kernel with up2date

 
Post new topic   Reply to topic    Server Administration Forum Index -> Linux Server
View previous topic :: View next topic  
Author Message
admin
Site Admin


Joined: 03 Sep 2005
Posts: 51

PostPosted: Tue Nov 29, 2005 7:31 pm    Post subject: HOW-TO: Upgrading Kernel with up2date Reply with quote

Today i upgraded kernel of Linux server running

# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon Update 1)
#

The kernel was

Quote:

# uname -a
Linux godislove.hosthat.com 2.4.21-9.0.1.EL #1 Mon Feb 9 22:44:14 EST 2004 i686 i686 i386 GNU/Linux
#


So i upgraded with up2date

Quote:

# up2date -f kernel

Fetching Obsoletes list for channel: rhel-i386-es-3...
########################################

Fetching Obsoletes list for channel: rhel-i386-es-3-extras...
########################################

Fetching Obsoletes list for channel: rhel-i386-es-3-devsuite...
########################################

Name Version Rel
----------------------------------------------------------
kernel 2.4.21 37.EL i686


Testing package set / solving RPM inter-dependencies...
########################################
kernel-2.4.21-37.EL.i686.rp ########################## Done.
Preparing ########################################### [100%]

Installing...
1:kernel ########################################### [100%]
stdin: is not a tty
stdin: is not a tty
stdin: is not a tty
#


After upgrading, it will update boot loader itself, so you don't have to do anything other than running up2date -f kernel

My /boot/grub/grub.conf is

Quote:








# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=3
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.21-37.EL)
root (hd0,0)
kernel (hd0,0)/vmlinuz-2.4.21-37.EL root=LABEL=/
initrd (hd0,0)/initrd-2.4.21-37.EL.img
title Red Hat Enterprise Linux ES (2.4.21-9.0.1.EL)
root (hd0,0)
kernel (hd0,0)/vmlinuz-2.4.21-9.0.1.EL root=/dev/hda3
initrd (hd0,0)/initrd-2.4.21-9.0.1.EL.img
title Red Hat Enterprise Linux ES (2.4.21-4.EL)
root (hd0,0)
kernel (hd0,0)/vmlinuz-2.4.21-4.EL root=/dev/hda3
initrd (hd0,0)/initrd-2.4.21-4.EL.img
#



Now just reboot the server. After reboot, check the kernel, you will see the new kernel

Quote:

# uname -a
Linux godislove.hosthat.com 2.4.21-37.EL #1 Wed Sep 7 13:35:21 EDT 2005 i686 i686 i386 GNU/Linux

# uname -r
2.4.21-37.EL

# cat /proc/version
Linux version 2.4.21-37.EL (bhcompile@tweety.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)) #1 Wed Sep 7 13:35:21 EDT 2005

Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Server Administration Forum Index -> Linux Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!