RedHat6.X添加本地软件库
/etc/yum.repos.d/rhel-source.repo
后面添加本地源
[rhel-local]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
注意file:///mnt/cdrom为安装光盘挂接路径,也可以使用其他路径
然后清理缓存
yum clean all
yum list