我正在运行centos版本5.4的Apache 2.2.3版本,我想获得这个Apache版本的最新安全补丁。
我通过检查了最后一次更新
rpm -q --changelog httpd | less
并显示
Thu Mar 25 2010 Karanbir Singh <[email protected]> 2.2.3-31.el5.centos.4 - Roll in CentOS Branding
Thu Mar 04 2010 Joe Orton <[email protected]> - 2.2.3-31.4 - require and BR a version of OpenSSL with the secure reneg API (#567980) .......
现在当我运行yum update httpd ,它说
No Packages marked for Update 。
那么有什么办法可以从centos升级到最新的补丁? 我也不想从第三方存储库进行更新。
问候
如果你正在运行CentOS 5.4,你可能要考虑更新到5.8。 例如, httpd软件包最近在2012年初有更新。
如果yum update没有更新任何东西,那是因为你指向的版本库没有更新的东西。 这表明你在CentOS 5.4上是明确的本地yumconfiguration点,而不是一般的CentOS 5 。 看看你在/etc/yum.repos.d/CentOS-Base.repo中的yumconfiguration; 它应该看起来像这样:
[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...
如果您的mirrorlist条目看起来不同,或者如果您使用baseurl而不是mirrorlist指向显式URL,请尝试更新条目,使其看起来像这样并再次运行yum update 。
这个文件( /etc/yum.repos.d/CentOS-Base.repo )是由centos-release软件包安装的,所以你也可以考虑从镜像中抓取软件包并手动安装,然后运行yum update 。
CentOS 5.x分支的最新版本是5.8。 你的安装很旧。
你可以尝试百胜检查更新 ? 如果不尝试, yum干净所有,然后再试一次。