purazumakoiの[はてなブログ]

技術メモから最近はライフログも増えてきてます。

Centos6にCentALTリポジトリからApacheを入れる

CentOS 6.3に yum でApache 2.2.22をインストール - 迷い家の白猫 技術部

この記事の通りに設定して

$ yum list --enablerepo=CentALT | grep httpd | grep CentALT

すると結果に

httpd.x86_64                               2.2.25-1.el6                CentALT
httpd-devel.x86_64                         2.2.25-1.el6                CentALT
httpd-manual.x86_64                        2.2.25-1.el6                CentALT
httpd-tools.x86_64                         2.2.25-1.el6                CentALT

こんな感じのが出てきてほしかったけど出てこない。これは
Baseのリポジトリのpriority=1にしてたからだったので

vi /etc/yum.repos.d/CentOS-Base.repo

#↓----------
[base]
#priority=1    ← コメントアウト

[updates]
#priority=1    ← コメントアウト
#------------↑

こんなふうにpriorityの設定を外したら出てきた。