Changes between Version 1 and Version 2 of CentOS_7_YUM
- Timestamp:
- 05/19/16 15:08:31 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CentOS_7_YUM
v1 v2 3 3 {{{ 4 4 ## 更换默认源,添加EPEL源 5 yum clean all 5 6 sed -i "/^enabled/ s/1/0/" /etc/yum/pluginconf.d/fastestmirror.conf 6 7 sed -i 's/^#baseurl/baseurl/g' /etc/yum.repos.d/CentOS-Base.repo … … 8 9 sed -i 's/mirror.centos.org/mirrors.aliyun.com/g' /etc/yum.repos.d/CentOS-Base.repo 9 10 rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm 11 sed -i 's/^#baseurl/baseurl/g' /etc/yum.repos.d/epel.repo 12 sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/epel.repo 13 sed -i 's/download.fedoraproject.org\/pub/mirrors.aliyun.com/g' /etc/yum.repos.d/epel.repo 14 yum makecache 10 15 11 16 ## 修改默认配置