yum增加源

默认的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

This entry was posted in Linux and tagged , , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>