CentOS自带的yum源不够丰富,为了使用方便,我经常借用第三方的yum源。每次都要重新找,嫌麻烦,这次总结下,也方便以后使用。我现在用的是64位的系统 ,只写64位的,以后遇到32位的了再加上……
1、安装rpmforge
rpm包的url:
http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
安装命令:
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
2、安装epel
rpm包的url:
http://mirrors.ustc.edu.cn/Fedora/epel/6/i386/epel-release-6-7.noarch.rpm
安装命令:
rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-7.noarch.rpm
为了方便,以后直接用这个脚本了(64位的CentOS6.2安装脚本):
#! /bin/bash
echo “Install rpmforge …”
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
echo “Install epel …”
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-7.noarch.rpm
echo “Done”
顺便附个图: