关于Linux6 系统dvd加载yum源问题,加载不起

我按照网上说明,先把硬盘挂在mnt/cdrom下:
.repos.d 文件配置如下:
[local]
name=local_yum
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releas

执行结果:
[root@Lu]# yum update
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security,
: subscription-manager, tmprepo, verify, versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
local | 3.9 kB 00:00 ...
local/primary_db | 3.1 MB 00:00 ...
Setting up Update Process
No Packages marked for Update

请问下为什么 No Packages ........ 的啊 请问我们哪里错了?

1个回答

编辑的文件名必须以.repo结尾,使用本地源,把本机带的压缩先
[local]
name=local_yum
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
这样编辑 yum clean all && yum makecache

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问