在CentOS和RHEL上安装RPMforge源
RPMforge,现已更名为Repoforge,是CentOS官方推荐的第三方yum源(仓库)。它可以安装在RHEL和CentOS上,提供超过5000种rpm格式的软件包,其中包括vlc、mplayer、xmms-mp3等流行的多媒体工具。
可以在这里找到完整的软件列表:http://packages.sw.be/。
验证系统版本
安装RPMforge(Repoforge)源之前,首先要确定系统版本和架构(i386或x86_64)。
可以用以下命令查看系统版本:
# cat /etc/redhat-release CentOS release 6.3 (Final)
可以uname -a命令确定系统架构。如果32位系统,将会显示i686 i686 i386 GNU/Linux;64位系统将显示x86_64 x86_64 x86_64 GNU/Linux。
32位系统:
# uname -a Linux quenywell.com 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 i686 i686 i386 GNU/Linux
64位系统:
# uname -a Linux quenywell.com 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
在RHEL/CentOS上安装RPMforge(Repoforge)
RHEL/CentOS 6 32位系统:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm # rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.i686.rpm
RHEL/CentOS 6 64位系统:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
RHEL/CentOS 5 32位系统:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm # rpm -Uvh rpmforge-release-0.5.3-1.el5.rf.i386.rpm
RHEL/CentOS 5 64位系统:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
在RHEL/CentOS 上导入RPMforge(Repoforge) GPG Key
# wget http://apt.sw.be/RPM-GPG-KEY.dag.txt # rpm --import RPM-GPG-KEY.dag.txt
验证安装:
# yum repolist Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: www.quenywell.com * extras: mirrors.163.com * rpmforge: mirrors.neusoft.edu.cn * updates: mirrors.163.com repo id repo name status base CentOS-6 - Base 6,381 extras CentOS-6 - Extras 13 rpmforge RHEL 6 - RPMforge.net - dag 4,597 updates CentOS-6 - Updates 1,017 repolist: 21,305
使用RPMforge(Repoforge)源
以安装mplayer为例,在RPMforge(Repoforge)源中查找mplayer:
# yum --enablerepo=rpmforge info mplayer Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: www.quenywell.com * epel: mirrors.hust.edu.cn * rpmforge: mirrors.neusoft.edu.cn * updates: mirrors.163.com Installed Packages Name : mplayer Arch : x86_64 Version : 1.0 Release : 0.48.svn20100703.el6.rf Size : 11 M Repo : installed From repo : rpmforge Summary : MPlayer, the Movie Player for Linux URL : http://mplayerhq.hu/ License : GPL Description : MPlayer is a multimedia player. It plays most video formats as : well as DVDs. Its big feature is the wide range of supported : output drivers. There are also nice antialiased shaded subtitles : and OSD. : : On x86, additional Win32 binary codecs should be added to : /usr/lib64/codecs/. : : Available rpmbuild rebuild options : : --with : dvdread : --without : aalib lirc cdparanoia arts xvid esd lzo fame caca dvb : vstream : theora osdmenu gcccheck fribidi xvmc x264 faac mpc : live ladspa amrnb samba speex twolame
安装mplayer:
# yum install mplayer
禁用RPMforge(Repoforge)源:
# vi /etc/yum.repos.d/rpmforge.repo 将enabled=1选项改为enabled=0。
(完)
除非注明,科威网文章均为原创。转载请以链接形式标明本文地址。
本文地址:http://quenywell.com/how-to-set-up-rpmforge-repoforge-repository-on-rhel-centos/