Changes between Version 1 and Version 2 of CentOS_7_YUM


Ignore:
Timestamp:
05/19/16 15:08:31 (7 years ago)
Author:
sky
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CentOS_7_YUM

    v1 v2  
    33{{{
    44## 更换默认源,添加EPEL源
     5yum clean all
    56sed -i "/^enabled/ s/1/0/" /etc/yum/pluginconf.d/fastestmirror.conf
    67sed -i 's/^#baseurl/baseurl/g' /etc/yum.repos.d/CentOS-Base.repo
     
    89sed -i 's/mirror.centos.org/mirrors.aliyun.com/g' /etc/yum.repos.d/CentOS-Base.repo
    910rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm
     11sed -i 's/^#baseurl/baseurl/g' /etc/yum.repos.d/epel.repo
     12sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/epel.repo
     13sed -i 's/download.fedoraproject.org\/pub/mirrors.aliyun.com/g' /etc/yum.repos.d/epel.repo
     14yum makecache
    1015
    1116## 修改默认配置