Check the yum repository
View all repo files
ll /etc/yum.repos.d/
Check all warehouse status
yum repolist all |grep enable
Install epel source
View the epel package in the system
yum list all | grep epel-release.noarch
Install the epel-release.noarch package and configure the epel source.
yum install -y epel-release
vi /etc/yum.repos.d/epel.repo
#中科大的epel source---suggestion
[epel-USTC]
name=epel-USTC--CentOS-$releasever
baseurl=https://mirrors.ustc.edu.cn/epel/$releasever/Everything/$basearch/
enabled =1
gpgcheck=0
# Install an epel device
[epel-huaweicloud]
name=epel-huaweicloud-CentOS-$releasever
baseurl=https://mirrors.huaweicloud.com/epel/$releasever/Everything/$basearch/
gpgcheck=0
# 清华的epel源
[epel-tsinghua]
name=Extra Packages-tsinghua for Enterprise Linux $releasever - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/$basearch
enabled=1
gpgcheck=0
source /etc/yum.repos.d/epel.repo
yum install httpd -y // Check configuration results