#主要是为了提高安装速度以及epel中自带源众多木有的软件.
#Author wood_man#2016.06.01 v 2.0
1. Test Environment VMware 10.0
CentOSRelease6.6(Final) I386
Kernel2.6.32-504.el6.i686 2. Preparation (1) Delete yum source #rm-f/etc/yum.repo.d/*
(2) Install and configure NetEase:
#wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo-O/etc/yum.repos.d/163.repo Chongqing University:
#wget Http://mirrors.cqu.edu.cn/distri/CentOS/6/CentOS-Base.repo #网易和重庆大学的镜像配置一个即可. Epel: #rpm-IVH http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Or
#rpm-IVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#rpm--import/etc/pki/rpm-gpg/rpm-gpg-key-epel-6# (if there is an error) Epel.repo all the comments in the"#mirrorlist"Use"BaseURL"And"Enabled=1 ".
#sed-R-i ' [email protected]# (BaseURL) @\[email protected] ' Epel.repo
# sed-i ' [email protected]@#&@g ' Epel.repo
Local Source:
#cat/etc/yum.repos.d/local.repo
[Local]name=centos6-localbaseurl=file:///mnt/cdrom/enabled=1gpgcheck=0
#yum Clean all #yum Makecache #
use with cautionCache to local installation is fast, but consumes bandwidth and disk; The cache location is defined in/etc/yum.conf. #yum repolist
#删除epel
RPM-E--nodeps (mandatory) epel-release
CENTOS6 Exchange Source