如何使能 rpmfusion?

首先查看系统架构:

# uname -i
					

x86_64 系统执行:

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
					

校验要安装的软件包:

# rpm -K rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
					

安装软件包:

# rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
					

		

进行查看是否安装成功:

# cd /etc/yum.repos.d/
# ls | grep rpmforge
mirrors-rpmforge
mirrors-rpmforge-extras
mirrors-rpmforge-testing
rpmforge.repo
					

修改 /etc/yum.repos.d/mirrors-rpmforge:

# vim /etc/yum.repos.d/mirrors-rpmforge
添加
http://mirrors.bclinux.org/rpmforge/redhat/el6/en/$ARCH/rpmforge
					

修改 /etc/yum.repos.d/mirrors-rpmforge-extras:

# vim /etc/yum.repos.d/mirrors-rpmforge-extras
添加
http://mirrors.bclinux.org/rpmforge/redhat/el6/en/$ARCH/extras
					

修改 /etc/yum.repos.d/mirrors-rpmforge-testing:

# vim /etc/yum.repos.d/mirrors-rpmforge-testing
添加
http://mirrors.bclinux.org/rpmforge/redhat/el6/en/$ARCH/testing
					

修改 /etc/yum.repos.d/rpmforge.repo:

# vim /etc/yum.repos.d/rpmforge.repo
### Name: RPMforge RPM Repository for RHEL 6 - dag
### URL: http://rpmforge.net/
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
baseurl = http://mirrors.bclinux.org/rpmforge/redhat/el6/en/$basearch/rpmforge
mirrorlist = http://mirrorlist.repoforge.org/el6/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

[rpmforge-extras]
name = RHEL $releasever - RPMforge.net - extras
baseurl = http://mirrors.bclinux.org/rpmforge/redhat/el6/en/$basearch/extras
mirrorlist = http://mirrorlist.repoforge.org/el6/mirrors-rpmforge-extras
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-extras
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

[rpmforge-testing]
name = RHEL $releasever - RPMforge.net - testing
baseurl = http://mirrors.bclinux.org/rpmforge/redhat/el6/en/$basearch/testing
mirrorlist = http://mirrorlist.repoforge.org/el6/mirrors-rpmforge-testing
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-testing
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1