- 论坛徽章:
- 0
|
本帖最后由 smishlhy 于 2013-09-02 12:03 编辑
本人在VMware中使用rhel6 在配置光盘yum源时出错,请教各位应该如何解决,谢谢。
光盘镜像已经挂载到/mnt下
rehl6系统的packagekit.media.repo文件名已经修改,新建了一个local.repo文件内容如下:
[local-Server]
name=rhel6server
baseurl=file:///mnt/Server
enable=1
gpgcheck=0
配置完后执行过yum clean all
下面是之后执行yum repolist的返回信息。
[rhel6@localhost ~]$ sudo yum repolist
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
repo id repo name status
local-Server rhel6server 3,391
repolist: 3,391
在执行yum install compiz-0.8.2-24.el6.x86_64.rpm时出错返回如下信息
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package compiz-0.8.2-24.el6.x86_64.rpm available.
Error: Nothing to do
该文件compiz-0.8.2-24.el6.x86_64.rpm 位置是在路径 /mnt/Server/Packages下。
尝试过把local.repo文件的路径修改位baseurl=file:///mnt/Server/Packages同样出错
[rhel6@localhost ~]$ sudo yum install compiz-0.8.2-24.el6.x86_64.rpm
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
file:///mnt/Server/Packages/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/Server/Packages/repodata/repomd.xml
Trying other mirror.
Setting up Install Process
No package compiz-0.8.2-24.el6.x86_64.rpm available.
Error: Nothing to do
|
|