给centos 6.2安装yum源
来源:岁月联盟
时间:2012-06-22
1、安装rpmforge rpm包的url: http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm安装命令: www.2cto.com 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安装脚本): www.2cto.com #! /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" 顺便附个图:
作者 Mike_Zhang