ghstber

Member
Oct 7, 2005
21
0
151
Greetings!

I am trying to update the kernels on a few servers, and I get the following:

-----------

[email protected] [~]# yum update
Gathering header information file(s) from server(s)
Server: CentOS-3 - Addons
Server: CentOS-3 - Base
Server: CentOS-3 - Extras
Server: CentOS-3 - Updates
Finding updated packages
Downloading needed headers
No Packages Available for Update
No actions to take

[email protected] [~]# yum update
Gathering header information file(s) from server(s)
Server: CentOS-3 - Addons
Server: CentOS-3 - Base
Server: CentOS-3 - Extras
Server: CentOS-3 - Updates
Finding updated packages
Downloading needed headers
No Packages Available for Update
No actions to take

------------

However, the kernel versions are not up to date (2.4.21-47.ELsmp is the version I believe that I'm looking for, the first is running 2.4.21-27.0.2.ELsmp and the second 2.4.21-32.ELsmp). I have already removed the kernel* from /etc/yum.conf.

Also, I noticed that on these servers, there is no /etc/yum.repos.d, instead all of the settings are listed in /etc/yum.conf. Is this normal, and is there any benefit to either way? How would I change this setup, if I wanted.

Thanks in advance!
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
There won't be a /etc/yum.repos.d as you're using CentOSv3 - that came in for CentOSv4.

You need to edit /etc/yum.conf and remove kernel* from the exclude= line and then run:

yum update

Once it is done, add back kernel* to the exclude= line in yum.conf

Then reboot and cross your fingers ;)
 

acenetryan

Well-Known Member
PartnerNOC
Aug 21, 2005
197
1
168
What is odd is that the first server (Kernel version 2.4.21-27.0.2.ELsmp) is reporting that the OS is Centos and the kernels are Fedora.

[email protected] [~]# cat /etc/*release*
CentOS release 3.8 (Final)


[email protected] [~]# pico /etc/grub.conf
title Fedora Core (2.4.21-27.0.2.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-27.0.2.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-27.0.2.ELsmp.img

Anyone seen this before?

Obviously an OS reload will resolve, but that is a last resort.

P.S. Ghstber and I are co-workers, this is the same issue.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
That was probably just what someone configured when editing grub.conf - no need for an OS reload. You do need to upgrade that kernel to the latest CentOS v3 one, though, as it's insecure.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Have you checked that yum.conf doesn't have kernel* in the exclude= list? You might also need to check in the repo file incase it has been put in there directly too.
 

acenetryan

Well-Known Member
PartnerNOC
Aug 21, 2005
197
1
168
Thanks Chirpy. Yeah that's what we're working on. Unfortunately, yum isn't recognizing any newer kernels and I'm a little apprehensive to do a manual upgrade. I thought the grub.conf settings may be related to why yum isn't seeing an update.

However, yum does appear to be using the correct CentOS mirrors for updating so I'm a little stumped.
 

acenetryan

Well-Known Member
PartnerNOC
Aug 21, 2005
197
1
168
Also, kernel* is removed from yum.conf exclude= list. This is CentOS 3 so, as you noted, the repo file is not in use (correct?). I don't see anything explicitly excluding the kernel update.