centos7 修改yum源为阿里源
2017-10-24 17:32
295 查看
1、安装base reop源
2、备份旧的配置文件
3、下载阿里源的文件
cd /etc/yum.repos.d
2、备份旧的配置文件
sudo mv CentOS-Base.repo CentOS-Base.repo.bak
3、下载阿里源的文件
sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo[/code]
4、安装epel repo源:
epel(RHEL 7)wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
epel(RHEL 6)wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
epel(RHEL 5)wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo
5、清理缓存yum clean all
6、重新生成缓存yum makecache
相关文章推荐
- centos7 修改yum源为阿里源
- Centos7 修改yum源为阿里源
- centos7 修改yum源为阿里源
- centos7 修改yum源为阿里源
- centos7 修改yum源为阿里源
- centos7 修改yum源为阿里源
- centos7修改yum下载源为阿里源
- centos7 修改yum源为阿里源(留存备用)
- centos7更换yum源为阿里源
- CentOS7 配置网卡 虚拟机挂载光盘 搭建本地yum源 修改主机名
- centos7 修改yum源为阿里源
- Centos7操作系统下修改yum源的方法
- 详解centos7配置本地yum源的方法
- centos7修改字符集
- CentOS7 64位小型操作系统的前期准备(XShell、网络、YUM源、EPEL源)
- 修改CentOs7 上Docker默认文件系统DeviceMapper为OverlayFS
- CentOS7下的YUM源服务器搭建详解,过程写的很详细(转)
- centos7下修改主机名
- CentOS 修改yum源为国内源
- 永久修改centos7的IP地址