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