RedHat6.X添加本地软件库
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为安装光盘挂接路径,也可以使用其他路径
centos6.x参见:
https://blog.csdn.net/allen_a/article/details/51198585?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control
然后清理缓存
yum clean all
yum list