实验步骤:
首先,我们可以通过yum repolist 命令查看系统当前的yum仓库
yum-config-manager --add http://content.example.com/rhel7.0/x86_64/dvd
vim /etc/yum.repos.d/content.example.com_rhel7.0_x86_64_dvd.repo
…
添加字段gpgcheck=0
yum clean all 清空yum缓存
yum repolist 列出仓库信息
关于yum配置文件的解析
YUM配置文件存放路径:/etc/yum.repos.d/
文件格式为:*.repo
[rhel_dvd] 仓库标识
gpgcheck = 0 关闭检测软件包签名功能
enabled = 1 启用该文件
baseurl = http://content.example.com/rhel7.0/x86_64/dvd 指定YUM仓库文件位置
name = Remote classroom copy of dvd 仓库的描述信息