|
|
发表于 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=file ATH路径改为真实存在的路径如:baseurl=file:///media/CDROM[光盘] |
|