yum install -y --enablerepo CentOS 更换yum源为aliyun yum源

echo -e "[NOT-CERTIFIED]\nname=NOT-CERTIFIED\nbaseurl=http://xxx/openopen/not-cert/rhel7-x86_64/latest/RPMS.all\nenabled=0\ngpgcheck=0" > /etc/yum.repos.d/NOT-CERTIFIED.repo
yum install -y --enablerepo=NOT-CERTIFIED lrzsz

 

wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

yum install epel-release

curl -o /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo

CentOS 更换yum源为aliyun yum源

https://www.cnblogs.com/activiti/p/7552375.html

posted @ 2020-03-02 11:38  tonggc1668  阅读(3226)  评论(0编辑  收藏  举报