linux yum源配置

2015-10-25

 

#!/bin/bash
### AUTHOR: Leo
### DATE: 2015/10/25
### NAME:yum.sh
### DESC:配置yum仓库

cd /etc/yum.repos.d
mkdir bak && mv Centos-* bak
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
wget http://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm 
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh epel-release-latest-6.noarch.rpm
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum clean all && yum makecache
ls -hl

 

posted @ 2015-10-25 16:45  岑亮  阅读(316)  评论(0编辑  收藏  举报