Web Hosting Talk







View Full Version : Kernel Upgrade Help!!


DanH
10-11-2003, 07:00 AM
I need some help with a kernel upgrade

I have registered up2date with the Redhat Network. And I am trying to update the kernel

I am running this command

up2date -f kernel

It starts and then said the following things are already up to date
Kernel

Now when I go into WHM it says

You are running an insecure kernel (2.4.18-27.7.x). You should upgrade to a newer version as soon as possible to avoid your system being compromised.

I am told by uname -r I am running 2.4.18-27.7.x

I really am having trouble here.

Please help me.

sprintserve
10-11-2003, 07:52 AM
Follow the Following:

Step 1:

up2date --configure

Press "7" and Press "Enter"

Press "C" and Press "Enter"

Press "24" and press "Enter"

Press "Enter" again


Step 2:

up2date -u

You will now see it updating


Step 3:

pico /boot/grub/grub.conf

Look for the new kernel you had just install. Count the number of boot up profile. The first one is 0 and second one is 1 and so on.

Based on that number, make sure the line

default = "x"

where "x" is equal to the number you counted above.

Save and exit.


Step 4:

reboot


The upgrade should be done. Sit back and wait a few minutes and pray it returns :)

Tazzman
10-11-2003, 08:37 AM
I personally prefer to only use up2date to download the new kernel and then install it manually. You can check the checksums then.

Also, if you don't want to keep the old kernel, you can use rpm -Uhv. This does mean you can't boot back to the old kernel if something goes wrong.

phpdeveloper
10-11-2003, 12:31 PM
Another way is to just wget the kernel rpm from:
http://updates.redhat.com/7.3/en/os/i686
http://updates.redhat.com/8.0/en/os/i686
http://updates.redhat.com/9/en/os/i686

and install it manually, works most of the time :)

sprintserve
10-11-2003, 12:34 PM
It's actually the same rpm. Up2date is just a conduit and channel for users to pull the updates without having to go anywhere specific. But yes, getting those rpms work just as well.

If you use the rpms, start from step 3 on my guide after you are done.

linux-tech
10-11-2003, 07:16 PM
Using up2date to modify, update and upgrade your kernel is a very very very (did I say VERY) bad idea. There's a reason why they leave that excluded.

If you're having problems upgrading a kernel, find a systems admin to do it for you. It's generally a better idea to do this anyways, as doing this without knowing what you're doing CAN (please note, I did say CAN) result in server problems, generally in a larger realm, such as server not booting up.

sprintserve
10-11-2003, 10:32 PM
It's not as optimized, but it works. Never had a problem with it.

ng4host
10-11-2003, 11:49 PM
when i run up2date got that error

The storage directory c could not be found, or was not
accessable

on Redhat 8.0

sprintserve
10-12-2003, 12:02 AM
You must have edited your Storage directory by accident.

Run up2date --configure again and configure option 0.

Ky@shinyhost
10-12-2003, 08:33 PM
For updating redhat machines (kernel included) I've seen nothing better than atrpms (http://atrpms.physik.fu-berlin.de/install.html) - it's an apt-get clone basically, much like Mandrakes urpmi but infinitely less flawed. If you follow the instructions on the page you can not only upgrade every piece of software on your system at once (with apt-get dist-upgrade) but you get a funky gui (synaptic) and the regular shell stuff - to upgrade your kernel all you'd need to do is type "apt-get kernel" - at which point it would complain about you not being specific enough, but prompt you with all the recent kernels so you can choose the one you want (single/multiprocessor etc).

There really is no better way to upgrade a redhat server IMHO.