我按照网上说明,先把硬盘挂在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 ........ 的啊 请问我们哪里错了?