Help - Search - Members - Calendar
Full Version: Kernel Upgrade in Red Hat 7.3
The Planet Forums > Operating Systems > Red Hat Linux > Red Hat HOWTOs
mrhugo
Hello guys
please i need to know how to update my kernel in fact that when i try :
rpm -q kernel it gives me this
kernel-2.4.18-27.7.x
kernel-2.4.20-28.7

??? so how would i continue the process !
plz help !
:confused:
LinuxFreak
Dear mrhugo,
Salam,

Simple Steps

Install your Old Kernel Source from your Installation CD's

# cd /usr/src/linux
# make menuconfig (go to bottom save config to a file /usr/src/oldconfig)
# rm /usr/src/linux
# ln -s /usr/src/linux-*.*.* (Note: New Kernel Symbolic Link)
# cd /usr/src/linux
# make menuconfig (go to bottom load up config file /usr/src/oldconfig, save and and exit)


Edit your .config

NOTE : Make Sure you have support for EXT3 not as MODULE

CONFIG_FS_EXT3=y

Before Compiling you need some extra things.

Download module-init-tools-3.0.tar.gz and modutils-2.4.21-22.src.rpm from Kernel.org

# tar -zxvf module-init-tools-3.0.tar.gz
# cd module-init-tools-3.0
# ./configure --prefix=/sbin
# make
# make install
# ./generate-modprobe.conf /etc/modprobe.conf
# rpm -i modutils-2.4.21-22.src.rpm
# rpmbuild -bb /usr/src/redhat/SPECS/modutils.spec
# rpm -Fi /usr/src/redhat/RPMS/i386/modutils-2.4.21-22.i386.rpm


Then

# cd /usr/src/linux
# make dep
# make clean
# make bzImage
# make modules
# make modules_install
# make install
# mkinitrd /boot/initrd-2.6.8.1.img 2.6.8.1
# reboot


Grub Configuration

CODE
# grub.conf generated by anaconda

 #

 # Note that you do not have to rerun grub after making

 # NOTICE:  You have a /boot partition.  This means that

 #          all kernel and initrd paths are relative to

 #          root (hd0,2)

 #          kernel /vmlinuz-version ro root=/dev/hda6

 #          initrd /initrd-version.img

 #boot=/dev/hda

 default=0

 timeout=10

 splashimage=(hd0,2)/grub/splash.xpm.gz

 title Red Hat Linux (2.6.8.1)

     root (hd0,0)

     kernel /vmlinuz-6.8.1 ro root=LABEL=/

     initrd /initrd-2.6.8.1.img


Lilo Configuration

CODE
prompt

timeout=50

default=linux

boot=/dev/hda

map=/boot/map

install=/boot/boot.b

message=/boot/message

linear



image=/boot/vmlinuz-2.6.8.1

       label=2.6.8.1

       initrd=/boot/initrd-2.6.8.1.img

       read-only

       append="root=LABEL=/"

       initrd=/boot/initrd-2.6.8.1.img


# /sbin/lilo -v -v
# /sbin/lilo -R 2.6.8.1


Best Regards.
crash4o4
if you want, you can use apt for redhat 7.3 and you can install the lastest kernel through apt-get package manger.


http://ftp.freshrpms.net/pub/freshrpms/red...rh73.2.i386.rpm


after you install this package.

issue

apt-get update

this command will grab information of all the packages that you can install on your systems.

to update your system you would type in.

apt-get dist-upgrade

but in your case you just want the kernel.

so you would use this command.

apt-get install kernel

this will display all the kernel packages you can install, just pick one and type that command in with the full kernel name.

apt-get install kernel-2.4.26 << for example
mrhugo
Thanx Alot Guys for ur help but
LinuxFreak i really appreciate your Kindness
and special thanx for crash4o4
mrhugo
Guys help plz i got this MSG:

root@server [~]# apt-get install kernel
Reading Package Lists... Done
Building Dependency Tree... Done
Package kernel is a virtual package provided by:
kernel#2.4.18-27.7.x 2.4.18-27.7.x
kernel#2.4.18-27.7.x 2.4.18-27.7.x
kernel#2.4.18-27.7.x 2.4.18-27.7.x
kernel-smp#2.4.20-28.7 2.4.20-28.7
kernel-debug#2.4.18-27.7.x 2.4.18-27.7.x
kernel-bigmem#2.4.20-28.7 2.4.20-28.7
kernel-BOOT#2.4.20-28.7 2.4.20-28.7
kernel#2.4.20-28.7 2.4.20-28.7
kernel#2.4.20-28.7 2.4.20-28.7
kernel#2.4.20-28.7 2.4.20-28.7
kernel-smp#2.4.18-3 2.4.18-3
kernel-debug#2.4.18-3 2.4.18-3
kernel-bigmem#2.4.18-3 2.4.18-3
kernel-BOOT#2.4.18-3 2.4.18-3
kernel#2.4.18-3 2.4.18-3
kernel#2.4.18-3 2.4.18-3
kernel#2.4.18-3 2.4.18-3
You should explicitly select one to install.
E: Package kernel has no installation candidate
---------------------------------
then i chose the package :
root@server [~]# apt-get install kernel#2.4-28.7 2.4.20-28.7
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel#2.4-28.7
Any Ideas Guyz plz
dynamicnet
Greetings:

Yum works wonders with the Fedora Legacy network.

See http://forum.ev1servers.net/showthread.php...4&highlight=yum

Thank you.
crash4o4
try this.


apt-get install kernel-2.4-28.7
mrhugo
thanx crash i did :
root@server [~]# apt-get install kernel-2.4-28.7
Reading Package Lists... 0%
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-2.4-28.7
!!!!!!
crash4o4
hmm

try maybe.

apt-get install kernel#2.4.18-27.7.x

if that don't work try this.

apt-get install kernel#2.4.18-27.7
mrhugo
:confused: did not go through either
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.