Redhat configuration yum source

Redhat configuration yum source (using Alibaba Cloud yum Repo)

This tutorial is used in redhat7.6
—1. View the version number and system category:

[root@localhost ~]# cat /etc/redhat-release

2. Configure yum source:

cd /etc/yum.repos.d/ 
wget http://mirrors.aliyun.com/repo/Centos-7.repo
sed -i 's/$releasever/7/g' /etc/yum.repos.d/Centos-7.repo
yum makecache

carry out

Guess you like

Origin blog.csdn.net/weixin_45849066/article/details/111513921