CentOS 5.x Installing RPMforge
原文地址:
1.安装 yum-priorities
yum install yum-priorities
2.priorities的配置文件是/etc/yum/pluginconf.d/priorities.conf,确认其是否存在。
其内容为:
[main]
enabled=1 # 0禁用 1启用
3.编辑 /etc/yum.repos.d/目录下的*.repo 文件来设置优先级。
参数为:
priority=N # N的值为1-99
推荐的设置为:
[base], [addons], [updates], [extras] ... priority=1
[centosplus],[contrib] ... priority=2
Third Party Repos such as rpmforge ... priority=N (where N is > 10 and based on your preference)
4.安装RPMforge
下载rpmforge-release
#i386
wget
#x86_64
wget
导入GPG key
rpm --import
确认rpmforge-release的完整性
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
会输出:
rpmforge-release-0.3.6-1.el5.rf.i386.rpm: (sha1) dsa sha1 md5 gpg OK
安装rpmforge
rpm -ivh rpmforge-release-0.3.6-1.el5.rf.*.rpm
测试rpmforge
yum check-update
会输出:
Loading "priorities" plugin
...
76 packages excluded due to repository priority protections
修改/etc/yum.repos.d/rpmforge.repo
添加
priority=3
之后就可以使用rpmforge安装各种应用程序了
例如:
yum install mplayer
阅读(870) | 评论(0) | 转发(0) |