LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 6501|回复: 5

Rhel5中的yum问题

[复制链接]
发表于 2008-1-3 17:39:13 | 显示全部楼层 |阅读模式
关于那个yum的问题,照着搞了半天,头都搞大了,怎么设置都不行啊。
1 我先把ISO文件解压到/peifei中,
2 /etc/yum.conf不作更改,建一个文件repo文件,如下

[root@Rhel5 ~]# cat /etc/yum.repos.d/rhel5.repo
[peifei]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///peifei/Server/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

3 然后再修改那个/usr/lib/python2.4/site-packages/yum/yumRepo.py文件,如下

remote = "file:///peifei/Server/" + '/' + relative

一步步都做了,可还是不行啊,汽死人了,,,

[root@Rhel5 ~]# system-config-packages
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
No Repositories Available to Set Up
no groups present!
No Repositories Available to Set Up
No Repositories Available to Set Up
发表于 2008-1-3 18:35:23 | 显示全部楼层
Post by Peifei;1802744
关于那个yum的问题,照着搞了半天,头都搞大了,怎么设置都不行啊。
1 我先把ISO文件解压到/peifei中,
2 /etc/yum.conf不作更改,建一个文件repo文件,如下

[root@Rhel5 ~]# cat /etc/yum.repos.d/rhel5.repo
[peifei]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///peifei/Server/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

3 然后再修改那个/usr/lib/python2.4/site-packages/yum/yumRepo.py文件,如下

remote = "file:///peifei/Server/" + '/' + relative

一步步都做了,可还是不行啊,汽死人了,,,

[root@Rhel5 ~]# system-config-packages
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
No Repositories Available to Set Up
no groups present!
No Repositories Available to Set Up
No Repositories Available to Set Up


白浪费时间,认证不能通过。下载软件和升级是不可能的,除非你使用Centos的源。网上有教程,把repo换成Centos的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-5 11:49:18 | 显示全部楼层
不是啊,可以进行本地更新的呀!
我不是想“更新”,只是想使用那个“增加/删除程序”(就是system-config-packages)。
回复 支持 反对

使用道具 举报

发表于 2008-1-5 18:21:00 | 显示全部楼层
Post by Peifei;1802744
关于那个yum的问题,照着搞了半天,头都搞大了,怎么设置都不行啊。
1 我先把ISO文件解压到/peifei中,
2 /etc/yum.conf不作更改,建一个文件repo文件,如下

[root@Rhel5 ~]# cat /etc/yum.repos.d/rhel5.repo
[peifei]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///peifei/Server/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

3 然后再修改那个/usr/lib/python2.4/site-packages/yum/yumRepo.py文件,如下

remote = "file:///peifei/Server/" + '/' + relative

一步步都做了,可还是不行啊,汽死人了,,,

[root@Rhel5 ~]# system-config-packages
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
No Repositories Available to Set Up
no groups present!
No Repositories Available to Set Up
No Repositories Available to Set Up

见红色部分,改为 enabled=1,如果不行,你再把 baseurl=fileATH路径改为真实存在的路径如:baseurl=file:///media/CDROM[光盘]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-7 12:43:22 | 显示全部楼层
再次感谢LiEn了。
enabled=1就可以了(以前我怎么没有注意这个呀:-)。
回复 支持 反对

使用道具 举报

发表于 2008-1-12 20:56:52 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表