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"
順便附個圖: