CentOS7 配置 yum 源和 epel 源

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7 配置 yum 源和 epel 源相关的知识,希望对你有一定的参考价值。

参考技术A 1、配置 浙大yum源。

在浙江大学开源镜像网站中选择Linux的发行版和版本,网站会自动生成我们所需版本的yum源信息,然后修改yum源即可。

2、配置网易和阿里的yum源(浙大的似乎更新缓慢,需要更新版本的软件安装选择商业公司的为好)

以root用户身份进入 /etc/yum.repos.d 目录

wget http://mirrors.aliyun.com/repo/Centos-7.repo

wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

yum clean all (清除yum缓存)

yum makecache (重新生成yum缓存)

3、安装 epel源(在网易和阿里yum源下,直接yum安装即可;另一种方式是rpm安装)

yum list | grep epel-release

yum install -y epel-release

yum repolist enabled (查看系统可用的yum源)

yum repolist all (查看系统所有的yum源)

以上是关于CentOS7 配置 yum 源和 epel 源的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7 配置 yum 源和 epel 源

CentOS7系统配置国内yum源和epel源

Centos7更改yum源和epel源到阿里云

配置阿里云 yum 源和 EPEL 源

CentOS 7 配置yum本地base源和阿里云epel源

Centos 7 配置阿里云 yum源和 安装 EPEL源