美文网首页
centos 7 换yum源

centos 7 换yum源

作者: nikori1990 | 来源:发表于2018-05-29 09:32 被阅读0次

1、备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

3、之后运行yum makecache生成缓存

yum makecache

如果报错可以使用 yum clean all 清除缓存再 yum makecache

相关文章

  • Linux 国内源安装

    CentOS 7 yum源 CentOS 6 yum源 Ubuntu 18 apt源 Ubuntu 16 apt源...

  • 常用yum源介绍及配置

    参考: CentOS 7下配置本地yum源及yum客户端 Centos7 配置本地源+阿里yum源/epel-yu...

  • centos 7 换yum源

    1、备份 2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ 3、之后运行yum ...

  • yum源的配置

    centos7yum源配置 本地yum源 网络yum源vim CentOS-Base.repo 后续会更新ubun...

  • centos7下安装mysql

    mysql安装 centos7下使用yum源安装mysql 因为centos7下默认没有mysql的yum源,所以...

  • 后台系统部署流程(python+vue)

    系统环境 操作系统Contos7 一、更新yum源,设置CentOS7的yum源为阿里的源 1、打开centos的...

  • CentOS 7 安装php5.6

    CentOS 7 yum 安装php5.6 配置yum源 追加CentOS 6.5的epel及remi源。 # r...

  • CentOS 换 yum 源

    使用说明 原文链接[http://mirrors.163.com/.help/centos.html] 首先备份/...

  • 第四周作业

    1、自建yum仓库,分别为网络源和本地源网络源repo配置(centos7): 本地源repo配置(centos7...

  • nginx 安装lnmp

    CentOS 7 yum nginx MySQL PHP 简易环境搭建 用centos自带的yum源来安装ngin...

网友评论

      本文标题:centos 7 换yum源

      本文链接:https://www.haomeiwen.com/subject/hdjojftx.html