阿里云yum仓库配置

centos下

yum仓库配置地址:/etc/yum.repos.d/,这个目录下的*.repo文件都会被识别为yum仓库。

阿里云yum仓库配置很简单:

阿里云官方镜像站https://developer.aliyun.com/mirror/,找到自己需要的,如centos7

 

 

 

 wget和curl两条命令任选一个,到自己机器执行,下载阿里提供的repo文件

可以在/etc/yum.repos.d/找到它,然后就可以使用yum在线安装了(这个仓库里存的是绝大多数centos的基础包,需要其他的可以在这个镜像站找自己需要的,如epel)

root@server /etc/yum.repos.d$ ll
total 4
-rw-r--r--. 1 root root 2523 Aug  4 15:04 CentOS-Base.repo
root@server /etc/yum.repos.d$ 

  

 

posted @ 2022-11-21 14:18  必须做大神  阅读(3461)  评论(0)    收藏  举报