当前位置: 首页 > 技术支持 > 服务器维护>> rhel 7.6通过镜像做本地yum仓库

rhel 7.6通过镜像做本地yum仓库

rhel 7.6通过镜像做本地yum仓库

本篇文章重点为大家讲解一下rhel 7.6通过镜像做本地yum仓库具体方法, 有需要的小伙伴可以参考一下。


新建挂载文件夹

mkdir -p /mnt/dvd  

将镜像挂载在本地

mount /dev/sr0 /mnt/dvd  

新建仓库文件

vi /etc/yum.repo.d/rheliso.repo    [rheliso]    name=rheliso    baseurl=file:///mnt/dvd    enabled=1    gpgcheck=0 //验证1为验证0为跳过,一般为0    gpgkey=file:///RHISO/RPM-GPG-KEY-redhat-release//校验key,可不用  

清除旧缓存

yum clean all  

创建新缓存

yum makecache  

验证是否成功

yum repolist  

显示

已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager    This system is not registered with an entitlement server. You can use subscription-manager to register.    源标识                                    源名称                                    状态    rheliso                                   rheliso                                   5,152    repolist: 5,152  

验证成功

本文来源:www.lxlinux.net/9894.html,若引用不当,请联系修改。


服务器购买/咨询热线:1563700917115617636856

本文链接:http://43.134.181.216/jishuzhichiyuweihu/11757.html
tags:LinuxVPSIPHTTPHTTPSWebHTML
腾讯云服务器特惠

  • 关注微信
是否收录:

猜你喜欢

微信公众号