Chinaunix首页 | 论坛 | 博客
  • 博客访问: 608506
  • 博文数量: 263
  • 博客积分: 6000
  • 博客等级: 准将
  • 技术积分: 2555
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-26 11:20
文章分类

全部博文(263)

文章存档

2011年(10)

2010年(19)

2009年(170)

2008年(64)

我的朋友

分类: LINUX

2009-03-03 23:57:55

关于那个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
 
4 为了避免yum对包的key验证,必要时可以关闭key验证
即:把gpgcheck=1全部改为gpgcheck=0
阅读(578) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~