默认的yum源中很多软件都没有,要想使用yum,首先得些增加yum的源
一般增加2个就够了
1.添加[CentALT]源
在/etc/yum.repos.d 目下创建 alt.ru.repo 文件内容如下:
[shell][CentALT]
name=CentALT Packages for Enterprise Linux 5 – $basearch
baseurl=http://centos.alt.ru/repository/centos/5/$basearch/
enabled=1
gpgcheck=0
[/shell]
2.添加EPEL
64位系统
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
32位系统
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm