关于那个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
阅读(616) | 评论(0) | 转发(0) |