阿里云yum仓库配置

系统+安全 Liemer_Lius 1305℃ 0评论

阿里云的repo仓库地址:

http://mirrors.aliyun.com/repo/
http://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/   ## 镜像地址,可根据各自版本调整URL

里面有很多版本的仓库信息,根据自己的需求来下载即可。

CentOS6:

# wget http://mirrors.aliyun.com/repo/Centos-6.repo    # 注,centos的repo指定的地址,在阿里云没有相应的源,尽量不要使用centos6了。
# wget http://mirrors.aliyun.com/repo/epel-6.repo
# yum clean all && yum makecache

CentOS7:

# wget http://mirrors.aliyun.com/repo/Centos-7.repo
# wget http://mirrors.aliyun.com/repo/epel-7.repo
# yum clean all && yum makecache

若使用阿里云服务器,将源的域名从mirrors.aliyun.com改为mirrors.aliyuncs.com,不占用公网流量。

转载请注明:liutianfeng.com » 阿里云yum仓库配置

喜欢 (0)

发表回复