linux yum 安装配置

国内优秀源:

1.http://mirrors.163.com/ 

2.http://mirrors.aliyun.com/

Centos 7安装yum 管理工具

rpm -ivh  --nodeps http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-150.el7.centos.noarch.rpm

rpm -ivh  --nodeps http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm

rpm -ivh  --nodeps http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm

Centos 7 更换默认源


1.首先备份/etc/yum.repos.d/CentOS-Base.repo

2.替换 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

3. yum repolist all

   

    如图则yum源更换成功:
linux yum 安装配置

4. yum clean all

5. yum makecache

结束

相关推荐