文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>设置yum, 以在桌面中使用“增加/删除程序(syste..

设置yum, 以在桌面中使用“增加/删除程序(syste..

时间:2009-03-03  来源:xuelanghu

关于那个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
相关阅读 更多 +
排行榜 更多 +
爱是小事最新版

爱是小事最新版

休闲益智 下载
悬案2刹那惊颤游戏

悬案2刹那惊颤游戏

冒险解谜 下载
几何飞行内购修改版

几何飞行内购修改版

飞行射击 下载