Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running centos version 5.4 with apache version 2.2.3, I want to get latest security patches for this apache version.

I checked the last update for apache via

rpm -q --changelog httpd | less

and it shows

Thu Mar 25 2010 Karanbir Singh <kbsingh@centos.org> 2.2.3-31.el5.centos.4 - Roll in CentOS Branding

Thu Mar 04 2010 Joe Orton <jorton@redhat.com> - 2.2.3-31.4 - require and BR a version of OpenSSL with the secure reneg API (#567980) .......

Now when I run yum update httpd , it says

No Packages marked for Update.

So is there any way I can update to the latest patch from centos? also I do not want to update from third party repositories.

Regards

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

If you're actually running CentOS 5.4, you may want to consider updating to 5.8. The httpd package, for example, has updates as recent as early 2012.

If yum update is not updating anything, it's because the repository you're pointing at does not have anything more recent. This suggests that you're local yum configuration points explicitly at CentOS 5.4 rather than more generically to CentOS 5. Take a look at your yum configuration in /etc/yum.repos.d/CentOS-Base.repo; it should look something like this:

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

# ...and a few more entries...

If your mirrorlist entries look different, or if you're pointing at an explicit URL using baseurl instead of mirrorlist, try updating the entries to look like this and running yum update again.

This file (/etc/yum.repos.d/CentOS-Base.repo) is installed by the centos-release package, so you could also consider grabbing the package from a mirror and installing it manually, then running yum update.

share|improve this answer
    
Thanks for the prompt response, thats is very helpfull answer, I just checked and in my server there are explicit baseurl, I will just change and check and will update you, Thanks –  Toqeer Aug 12 '12 at 14:14
add comment

The latest version from the CentOS 5.x branch is 5.8. Your install is quite old.

Could you try yum check-update ? If not try, yum clean all and try again.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.