Cent OS 4.4 で yum のリポジトリを追加するときの注意(´・ω・`)
Cent OS 4.4 の php を4系から5系に更新する必要があり、yum を利用しようと思ったのだがうまく行かなかったのでメモ。
いろいろなサイトにやり方が書いてあるけど、今じゃ使えないってことなのかもしれない。
やり方としては、/etc/yum.repos.d/CentOS-Base.repo を編集し、centosplus の enables を1にすることで可能になるとある。
#additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 #enabled=0 enabled=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
参考にしたサイトだとこれでイケるみたいだけど、うまく行かず。
で、指定されているftpを覗いたところ、readmeしか存在せず、
This directory (and version of CentOS) is depreciated. For normal users, you should use /4/ and not /4.4/ in your path. Please see this FAQ concerning the CentOS release scheme: http://www.centos.org/modules/smartfaq/faq.php?faqid=34 If you know what you are doing, and absolutely want to remain at the 4.4 level, go to http://vault.centos.org/ for packages.
とのことでした。
なので、
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
を
baseurl=http://mirror.centos.org/centos/4.8/centosplus/$basearch/
に変更することで、php 5 へ更新することができた。