Redhat配置yum源

Redhat配置yum源(使用阿里云yum Repo)

本教程使用于redhat7.6
—1.查看版本号和系统类别:

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

2.配置yum源:

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

完成

猜你喜欢

转载自blog.csdn.net/weixin_45849066/article/details/111513921