一 删除其他源 cd /etc/yum.repos.d/ 二 创建源 vim CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the…
在/etc/yum.repos.d/ 目录下,有两个文件 CentOS-Base.repo和 CentOS-Media.repo 其中CentOS-Base.repo 记录着网络上的 yum 源的地址和路径信息等 CentOS-Media.repo记录着可以从本地作为 yum 源的介质和路径.原文 # CentOS-Media.repo # # This repo is used to mount the default locations for a CDROM / DVD on # Ce…
一.简介 安装Redhat7并配置了网卡之后,虽然可以直接ping www.baidu.com,但是执行yum install的命令时提示如下信息: [root@ansible ~]# yum install -y vim Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement serve…