1週間ぶりに、yum updateをしたら何か遅いなぁと思ったら、5.2が出たもよう。そういえば、週明けぐらいっていってたっけ。
でももう少し5.1にしたいなぁと思い、どうすればいいんだっけということで、調査
CentOS-Base.repoの$releaseverが関係してたような気が…
[base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
man yum.confしてみました。
VARIABLES
There are a number of variables you can use to ease maintenance of yum’s
configuration files. They are available in the values of several options
including name, baseurl and commands.
$releasever
This will be replaced with the value of the version of the package
listed in distroverpkg. This defaults to the version of ‘redhat-
release’ package.
redhat-releaseパッケージのバージョンて?→【参照】CentOS 5.0 のままアップデートを続ける場合 - daily dayflowerということのようです。追試してみました。
# rpm -q --whatprovides redhat-release
centos-release-5-1.0.el5.centos.1
# rpm -q --whatprovides redhat-release --qf "%{VERSION}\n"
5
同じでした。引き続き上のページを参考にyum.confを変更。無事に戻りました。感謝。
[base] name=CentOS-5.1 - Base mirrorlist=http://mirrorlist.centos.org/?release=5.1&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
5.2へは、夏休みのころ?