0


CentOS配置阿里云yum源和阿里云epel源

CentOS配置阿里云yum源和阿里云epel源

前言:

阿里云地址

https://developer.aliyun.com/mirror/

一、 备份

cd /etc/yum.repos.d/ &&mkdir bak
mv *.repo *repo.rpmnew ./bak/

在这里插入图片描述

二、 配置阿里云yum源

wget-O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
#或者curl-o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
#进入目录cd /etc/yum.repos.d/
wget https://mirrors.aliyun.com/repo/Centos-7.repo
 
yum clean all
yum makecache

在这里插入图片描述

三、 配置阿里云epel源

wget-O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
#或者cd /etc/yum.repos.d/
wget https://mirrors.aliyun.com/repo/epel-7.repo

yum clean all
yum makecache

在这里插入图片描述

四、测试

yum install-y httpd

在这里插入图片描述

标签: centos 阿里云 linux

本文转载自: https://blog.csdn.net/xtaypyvi123456/article/details/135746448
版权归原作者 可爱的小张666 所有, 如有侵权,请联系我们删除。

“CentOS配置阿里云yum源和阿里云epel源”的评论:

还没有评论