配置本地yum源仓库 & 配置本地yum源仓库查看当前已配置所有yum源仓库开启某个源仓库 配置本地yum源仓库 在目录 /etc/yum.repos.d 下创建 xxx.repo 的配置文件,内容如下 [local] name=localrepo baseurl=本地yum源文件目录 不校验rpm包 gpgcheck=0 开启这个yum源配置 enabled=1 查看当前已配置所有yum源仓库 all:包括 未启用的,不带all只显示启用的仓库 yum repolist all 开启某个源仓库 yum-config-manager --enable 仓库名称